Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial: Troubleshooting Linux SSH Login Delay - Why does logging in always take 10 seconds? | Tanel Poder Consulting #20

Open
utterances-bot opened this issue Mar 24, 2021 · 3 comments

Comments

@utterances-bot
Copy link

Tutorial: Troubleshooting Linux SSH Login Delay - Why does logging in always take 10 seconds? | Tanel Poder Consulting

As I’m delivering my Linux Troubleshooting training soon, I am going to blog about some typical issues and techniques we’ll troubleshoot in the class too.
I’ll start from a relatively simple problem - logging in to a server via SSH always takes 10 seconds. The delay seems to be pretty constant, there don’t seem to be major network problems and the server is not overloaded. Yet, remote logins always take 10 seconds. - Linux, Oracle, SQL performance tuning and troubleshooting - consulting & training.

https://tanelpoder.com/posts/troubleshooting-linux-ssh-logon-delay-always-takes-10-seconds/

Copy link

Hi
Sorry if I've missed, I kind of "TLDR"-ed it ... but do you have any fix for this ?! something that can be configured on either of the client or server side !?

Copy link

wxl374 commented Oct 27, 2022

Really helpful, thank you!!!

@tanelpoder
Copy link
Owner

Thanks @wxl374!

Looks like I forgot to reply to @AsharLohmar question, the typical workaround to SSHD login delays (if you have a spotty DNS server with bad availability or response time) is to disable SSHD reverse DNS lookups:

In /etc/ssh/sshd_config set UseDNS no

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants