代码之家  ›  专栏  ›  技术社区  ›  HappyFace

ssh被卡住了,没有明显的原因

  •  0
  • HappyFace  · 技术社区  · 7 年前
    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。

    2 回复  |  直到 7 年前
        1
  •  0
  •   HappyFace    7 年前

    几个小时后问题就自行消失了。我不知道为什么。

        2
  •  0
  •   Andrey Gagan    6 年前

    重新启动/重新启动设备,它将开始工作