SSH远程连接不上常见错误

SSH 主机密钥和系统保存的不一样

报错如下:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:dIuVn9ocdHG/eEwdqUM1o2Ipp2TenQwSWLaCioU7krg.
Please contact your system administrator.
Add correct host key in C:\\Users\\d113d/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in C:\\Users\\d113d/.ssh/known_hosts:63
Host key for 192.168.66.1 has changed and you have requested strict checking.
Host key verification failed.

解决:使用 ssh-keygen 命令快速删除

ssh-keygen -R 192.168.66.1 #后面的ip自行修改

与主机不在同一网段

ping连接的设备的ip,看看能不能ping通

ping your_ip

如果不同请检查自己电脑的ip是不是和设备在同一个网段下

© 版权声明
THE END
喜欢就支持一下吧
点赞10 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容