Howto fix delay in SSH Login

by
Share this Article: Facebook0Google+20Twitter10LinkedIn1Reddit0StumbleUpon0

Question : How to fix delay in SSH Login ?

Answer  :

DNS lookup query is an SSH feature that you can find in most Linux distros, this feature is responsible for the  delay because SSH wait for a response of reverse DNS lookup query that is been made to DNS Server.

To overcome this issue, please follow these steps:

1- Edit  /etc/ssh/sshd_config  on sshd  Server

vi /etc/ssh/sshd_config

and add this DNS option to the file:

UseDNS no

save  and exit
2- Now add the following line to your /etc/resolv.conf.

options single-request-reopen

Restart  sshd  

 /etc/init.d/sshd  restart

Done

For questions please refer to our Q/A forum at : http://ask.unixmen.com/


Share this Article: Facebook0Google+20Twitter10LinkedIn1Reddit0StumbleUpon0