For When You Can't Have The Real Thing
[ start | index | login ]
start > CentOS > 7 > ssh > slow ssh connections

slow ssh connections

Created by dave. Last edited by dave, 4 years and 174 days ago. Viewed 1,026 times. #1
[edit] [rdf]
(5 September 2019)


When I ssh login to a CentOS 7 system, it always takes around 30 second to log in.


Turn off the authentication types you don't need in /etc/ssh/sshd_config:

useDNS no
ChallengeResponseAuthentication no
KerberosAuthentication no
GSSAPIAuthentication no
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no

With this configuration, the ssh server should still accept both interactive passwords and ssh pubkeys.


Found >>here. In my highly specific case, disabling GSSAPIAuthentication made the difference between a 50 second wait to log in and a sub-1-second wait to log in.

no comments | post comment
This is a collection of techical information, much of it learned the hard way. Consider it a lab book or a /info directory. I doubt much of it will be of use to anyone else.

Useful: | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt