SSH 无缘无故卡住
SSH gets stuck with no apparent reason
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/evar/.ssh/config
debug1: /Users/evar/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 198.143.181.104 port 22.
debug1: Connection established.
debug1: identity file /Users/evar/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/id_rsa-cert type -1
debug1: identity file /Users/evar/.ssh/bb_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/bb_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
突然发生,服务器上没有任何操作。不幸的是,如果没有 SSH,我无法访问这个 VPS。如果它没有得到修复,我将被迫删除 VPS :( 有什么想法可以尝试吗?
更新:等待一段时间后:
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/evar/.ssh/config
debug1: /Users/evar/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 198.143.181.104 port 22.
debug1: Connection established.
debug1: identity file /Users/evar/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/id_rsa-cert type -1
debug1: identity file /Users/evar/.ssh/bb_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/bb_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 pat OpenSSH* compat 0x04000000
debug3: fd 5 is O_NONBLOCK
debug1: Authenticating to 198.143.181.104:22 as 'mary'
debug3: hostkeys_foreach: reading file "/Users/evar/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/evar/.ssh/known_hosts:49
debug3: load_hostkeys: loaded 1 keys from 198.143.181.104
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 198.143.181.104 port 22
PS: 网络 MTU 为 1500。
几个小时后问题自行消失。我不知道为什么。
Restart/reboot 您的设备,它将开始工作
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/evar/.ssh/config
debug1: /Users/evar/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 198.143.181.104 port 22.
debug1: Connection established.
debug1: identity file /Users/evar/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/id_rsa-cert type -1
debug1: identity file /Users/evar/.ssh/bb_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/bb_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
突然发生,服务器上没有任何操作。不幸的是,如果没有 SSH,我无法访问这个 VPS。如果它没有得到修复,我将被迫删除 VPS :( 有什么想法可以尝试吗?
更新:等待一段时间后:
OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/evar/.ssh/config
debug1: /Users/evar/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 198.143.181.104 port 22.
debug1: Connection established.
debug1: identity file /Users/evar/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/id_rsa-cert type -1
debug1: identity file /Users/evar/.ssh/bb_rsa type 0
debug1: key_load_public: No such file or directory
debug1: identity file /Users/evar/.ssh/bb_rsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_7.6
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
debug1: match: OpenSSH_7.2p2 Ubuntu-4ubuntu2.2 pat OpenSSH* compat 0x04000000
debug3: fd 5 is O_NONBLOCK
debug1: Authenticating to 198.143.181.104:22 as 'mary'
debug3: hostkeys_foreach: reading file "/Users/evar/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /Users/evar/.ssh/known_hosts:49
debug3: load_hostkeys: loaded 1 keys from 198.143.181.104
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh.com,ecdsa-sha2-nistp384-cert-v01@openssh.com,ecdsa-sha2-nistp521-cert-v01@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by 198.143.181.104 port 22
PS: 网络 MTU 为 1500。
几个小时后问题自行消失。我不知道为什么。
Restart/reboot 您的设备,它将开始工作