我通过 ssh 登录 raspberry pi 时出错。我正在使用用户pi
,但主机重置了连接。
以下是来自 ssh 客户端的详细输出:
debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.7p1 Raspbian-5+deb8u3
debug1: compat_banner: match: OpenSSH_6.7p1 Raspbian-5+deb8u3 pat OpenSSH* compat 0x04000000
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to 172.16.0.2:22 as 'pi'
debug1: load_hostkeys: fopen ~/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug3: order_hostkeyalgs: no algorithms matched; accept original
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 172.16.0.2 port 22
我尝试过谷歌搜索SSH2_MSG_KEXINIT sent
,但Connection reset by 172.16.0.2 port 22
什么也没找到。我反复重启PI
ssh 服务器,但还是没有取得任何进展。
我应该从哪里开始诊断这个问题?