Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a server, that I work with via SSH. It took quite a lot time (a few seconds) to request the password before I've added it to my /etc/hosts file, but after I've done that there is no pause between SSH command and password request. I'm curious, why?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

DNS lookup is what is taking time.

Adding

UseDNS no

To your /etc/ssh/sshd_config will achieve the same thing

share|improve this answer
    
Probably - another likely candidate is an ident lookup. Both would be evident from monitoring the outgoing traffic on the server. –  symcbean Mar 20 '13 at 12:39

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.