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, 11 days ago. Viewed 30 times. #1
[edit] [rdf]
labels
attachments
(5 September 2019)

Problem

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

Solution

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.

Details

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:


snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt