ssh連接慢解決

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 [email protected]
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/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章