You can Watch all our Tutorials and Training Videos on our YouTube Channel for Free! Subscribe Now! & Free Web Tools available on

Solution to fix SSH Login delay on Linux

solution to fix ssh login delay, fix ssh login delay issue, fix ssh issue on linux, linux ssh login issue, linux ssh delay timeout fix, linux ssh

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

Here is a solution to fix this issue, this is related to DNS. We have to change dns related entries in ssh config file to reduce this delay.

Solution to fix SSH Login delay on Linux

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..
[root@linux1 ~]# vi /etc/ssh/sshd_config

Just search for UseDNS..
[root@linux1 ~]#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..
[root@linux1 ~]# service sshd reload

[root@linux1 ~]# systemctl reload sshd

Now try to login and observe, SSH Login delay will be fixed.

Hope this post helped you to fix SSH Login Delay Issue.
Keep practicing and have fun. Leave your comments if any.

Support Us: Share with your friends and groups.

Stay connected with us on social networking sites, Thank you.

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.