2020年7月22日
通过ssh登陆一台linux主机非常慢,基本上每次都在10s以上 [root@localhost ~]# time ssh 192.168.146.104 real 0m13.730s user 0m0.014s sys 0m0.009s 通过ssh -vvv查看建立链接的过程中详细日志,找出最慢的地方出现在哪里 [root@localhost ~]# ssh -vvv 192.168.146.104 OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 192.168.146.104 [192.168.146.104] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type -1 debug1: identity file /root/.ssh/identity-cert type -1 ... debug1: Local version string SSH-2.0-OpenSSH_5.3 debug2: fd 3 setting O_NONBLOCK debug1: SSH2_MSG_KEXINIT sent debug3: Wrote 960 bytes for a total of 981 debug1: SSH2_MSG_KEXINIT received ... debug2: mac_setup: found hmac-sha1 debug1: kex: server-client aes128-ctr hmac-sha1 none debug2: mac_setup: found hmac-sha1 debug1: kex: client-server aes128-ctr hmac-sha1 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024debug3: Wrote 68……