在mac os 下使用: ssh -l root 192.168.100.141
报错,错误信息如下:
[root@cqcis ]# ssh -l
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
d0:00:7c:bc:88:5c:dc:de:89:61:44:30:00:60:f9:b2.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for 136.3.243.233 has changed and you have requested strict checking.
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8]
解决方法:
| vi ~/.ssh/known_hosts |
进入此目录,删除192.168.100.141的相关rsa的信息即可.
136.3.243.233
10.1.2.17 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAA
本文介绍在 MacOS 下通过 SSH 连接远程服务器时遇到的 RSA 主机密钥变更问题及解决方案。该问题表现为警告信息提示远程主机的身份已更改,并提供了密钥指纹用于验证。文章详细介绍了如何通过编辑 ~/.ssh/known_hosts 文件来解决这一问题。
1389

被折叠的 条评论
为什么被折叠?



