Search This Blog

Friday, January 2, 2009

ssh connection slows down in Ubuntu

I today found a real good solution to avoid slow-down of ssh connection speed to Ubuntu 8.04 server. Click here.

The OpenSSH server on the server attempts to look up the reverse DNS of the connecting machine. The client machine does not have a host name (i.e. reverse DNS) set up. The quick solution is to edit /etc/nsswitch.conf

...
# Change this line
# hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
# To this (removed mdns4)
hosts: files mdns4_minimal [NOTFOUND=return] dns

Labels