Take the 2-minute tour ×

When I try to connect ssh it takes too long (almost 2 minutes) to appear password prompt.

Why does this happens?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

It is something that comes wrong from Ubuntu's installation.

To fix it you have to change this line in /etc/nsswitch.conf:

hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4

And change it for this one:

hosts:          files dns
share|improve this answer
The filename is /etc/nsswitch.conf. –  Jimmy Hedman Jan 23 '13 at 6:43

Your Answer


