Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.