connect to ssh too slow

never fullfill the speed, faster, stronger.

show the verbose

use -vvv option to show which step you stuck.

1
2
3
4
5
6
7
8
9
$ 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:

1
GSSAPIAuthentication no

2.UseDNS

1
useDNS no

restart sshd server

1
$ sudo service sshd restart

enjoy the fast speed.

reference