connect to ssh too slow
never fullfill the speed, faster, stronger.
show the verbose
use -vvv option to show which step you stuck.
$ ssh -vvv root@192.168.100.11
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /home/jack/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
…
debug3: authmethod_is_enabled gssapi-with-mic
debug1: Next authentication method: gssapi-with-mic
…
it seems to stuck on the GASSAPI, so no check:.
slove ways
1.GASSAPI
in the target host(192.168.100.11) /etc/ssh/sshd_config:
GSSAPIAuthentication no
2.UseDNS
useDNS no
restart sshd server
$ sudo service sshd restart
reference
https://jimolonely.github.io/2019/04/08/linux/021-ssh-login-too-slow/