Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
1  
The filename is /etc/nsswitch.conf. – Jimmy Hedman Jan 23 '13 at 6:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .