tanelpoder / blog-comments

Comment repo for tanelpoder.com blog
3 stars 0 forks source link

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

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

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/

AsharLohmar commented 3 years ago

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 !?

wxl374 commented 2 years ago

Really helpful, thank you!!!

tanelpoder commented 2 years ago

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