从 Ubuntu 到 Ubuntu 的 SSH 问题

从 Ubuntu 到 Ubuntu 的 SSH 问题

我尝试从 Ubuntu 桌面 16.04 LTS 连接到 Ubuntu 服务器 16.04.3 LTS,并收到以下 SSH 日志:

ssh -vvv -p portno [email protected]
OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "myserver.mydomain.com" port portno
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to myserver.mydomain.com [xx.xx.xx.xx] port portno.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/localuser/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.2
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
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to myserver.mydomain.com:portno as 'theuser'
debug3: put_host_port: [myserver.mydomain.com]:portno
debug3: hostkeys_foreach: reading file "/home/localuser/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file /home/localuser/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from [myserver.mydomain.com]:portno
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection closed by xx.xx.xx.xx port portno

在服务器端,我在 auth.log 中收到以下日志

Did not receive identification string from xx.xx.xx.xx

我收到了两个不同用户的同一条消息

我尝试过从同一源网络的另外两台 Ubuntu 和 Windows 机器连接到服务器,并且成功了!

当我从我的桌面 Ubuntu 建立到第三台服务器的 vpn 连接并尝试使用 SSH 连接到我的服务器时,成功了!

在此之前它运行良好,我想知道计算机发生了哪些变化导致了这种情况!

相关内容