Delay in SSH Login Prompt


You may came across this situation. At the time of logging in the shell prompt using SSH, 

               - Connection will be taking a fraction of second
               - After/While entering the Password its taking more time to provide the shell prompt.
             
To fix this issue:

This is related to DNS. We have to change dns related entries in ssh config file to reduce this delay.

Note : 
     Be careful when doing this on production servers. 
     This activity may disconnect all the users from the system who are logged in to that machine using SSH. 

By default UseDNS option in this file is disable. We have to uncomment this option and then edit this entry to no. As below.. 

# vi /etc/ssh/sshd_config 

Just search for UseDNS.. 

                     #UseDNS yes  

Change that to, (Simply Uncomment it)

                      UseDNS no 

save and exit the file and then just reload ssh service to take effect what ever changes we did.. 

# service sshd reload
  
Now try to login and observe, delay will be reduced.

Please post your comments on this..

Share this

Related Posts

Previous
Next Post »

2 comments

Write comments
Anonymous
July 2, 2018 at 2:08 PM delete

I think this is one of the most important info for me.
And i'm glad reading your article. But want to remark on some general things, The site style is
great, the articles is really nice : D. Good job, cheers

Reply
avatar
Anonymous
July 8, 2018 at 7:58 AM delete

Very soon this website will be famous amid all blogging viewers, due to it's good posts

Reply
avatar

What do you think about this Article? Add your Opinion..! EmoticonEmoticon