从 Ubuntu 到 Windows 的 SSH 失败,并显示“连接被对方​​重置”

从 Ubuntu 到 Windows 的 SSH 失败,并显示“连接被对方​​重置”

我在 Windows 机器上设置了 SSH 服务器此链接。从 Ubuntu 到 Windows 的 SSH 运行良好,但随后开始出现以下错误。如果我重新启动 Windows 计算机,它会正常工作一段时间,然后再次开始失败。出了什么问题?

user@hostname:~$ ssh user@ip
ssh_exchange_identification: read: Connection reset by peer

user@hostname:~$ ssh -v user@ip
OpenSSH_5.9p1 Debian-5ubuntu1.10, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/user/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to ip [ip] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/user/.ssh/id_rsa-cert type -1
debug1: identity file /home/user/.ssh/id_dsa type 2
debug1: Checking blacklist file /usr/share/ssh/blacklist.DSA-1024
debug1: Checking blacklist file /etc/ssh/blacklist.DSA-1024
debug1: identity file /home/user/.ssh/id_dsa-cert type -1
debug1: identity file /home/user/.ssh/id_ecdsa type 3
debug1: Checking blacklist file /usr/share/ssh/blacklist.ECDSA-256
debug1: Checking blacklist file /etc/ssh/blacklist.ECDSA-256
debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: read: Connection reset by peer

相关内容