liz*_*liz 9 connection ssh reset raspberry-pi ssh-keygen
我正在尝试使用该命令设置raspberry pi,ssh pi@raspberrypi.local但我不断收到这些消息:
ssh -v pi@raspberrypi.local
OpenSSH_7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug1: Connecting to raspberrypi.local [2601:47:4001:d250:88ff:ddb5:f761:74d2] port 22.
debug1: Connection established.
debug1: identity file /Users/liz/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/liz/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4p1 Raspbian-10+deb9u1
debug1: match: OpenSSH_7.4p1 Raspbian-10+deb9u1 pat OpenSSH* compat 0x04000000
debug1: Authenticating to raspberrypi.local:22 as 'pi'
debug1: SSH2_MSG_KEXINIT sent
Connection reset by 2601:47:4001:d250:88ff:ddb5:f761:74d2 port 22
Run Code Online (Sandbox Code Playgroud)
我有一种预感,它与我先前使用完全相同的主机名和用户名进入不同的覆盆子pi的事实有关,但我不知道如何修复它以便我可以访问这个(并可能将其重命名以避免将来出现此问题).我尝试过,ssh-keygen -R raspberrypi.local但我仍然收到相同的消息.还有更多我需要做的删除它吗?我也使用在Sierra 10.12.6上运行的mac.我尝试查看类似的问题,但找不到任何有效的方法.谢谢!
Coo*_*J86 16
我也有这个问题.
这是适用于我的解决方案:https: //raspberrypi.stackexchange.com/a/60375/26923
在本质上:
rm /etc/ssh/ssh_host_*
dpkg-reconfigure openssh-server
Run Code Online (Sandbox Code Playgroud)
我认为问题是第一次启动时生成的密钥对文件已损坏(可能是在安装过程中插入和拔出电源).