วิธีแก้ปัญหา Login ช้าใน Ubuntu

การใช้ SSH remote login ใน Ubuntu แม้จะเป็นการ Connect ในระบบ LAN แต่กลับใช้เวลาถึงเกือบ 10 วินาีที เนื่องจาก Ubuntu พยายามร้องขอ domain name จาก DNS ทำให้เกิด timeout ขึ้น

สามารถแก้ได้โดยพิมพ์คำสั่งนี้ใน Terminal

sudo echo “UseDNS no” >> /etc/ssh/sshd_config
sudo /etc/init.d/ssh restart

Leave a comment