我的 Ubuntu 笔记本电脑遇到了一个非常烦人的问题。
在升级到 Ubuntu 11.04 后,我今天注意到了这一点,尽管我不完全确定这是我几天前使用 ssh 密钥的原因。
问题是,每当我尝试通过 ssh 连接到任何主机时,都会出现以下错误:
Read from socket failed: Connection reset by peer
Run Code Online (Sandbox Code Playgroud)
使用 -vvv 运行会产生以下输出:
OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to hostname [10.0.0.2] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type …Run Code Online (Sandbox Code Playgroud)