When I try to connect ssh it takes too long (almost 2 minutes) to appear password prompt.
Why does this happens?
|
When I try to connect ssh it takes too long (almost 2 minutes) to appear password prompt. Why does this happens? |
||||
|
|
There are several things that can go wrong. Add The problem could be on the client or on the server. A common problem on the server is if you're connecting from a client for which reverse DNS lookups time out. (A “reverse DNS lookup” means getting back from the client machine's IP address to a host name. It isn't really useful for security, only slightly helpful to diagnose breakin attempts from log entries, but the default configuration does it anyway.) To turn off reverse DNS lookups, add Another thing that can go wrong is GSSAPI authentication timing out. If you don't know what that is, you're probably not relying on it; you can turn it off by adding the line |
||||
|
|
|
It is something that comes wrong from Ubuntu's installation. To fix it you have to change this line in /etc/nsswitch.conf:
And change it for this one:
|
|||||||||||
|