2

即使更改了 BBB 的 IP 之一,当我尝试连接时,它的配置也会恢复为默认值,是否有人尝试过,如果有,请告诉我解决方案的确切步骤。问题:root@silvan-DL-H61MXP:~# ssh root@192.168.7.2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 RSA key sent by the remote host is
7d:0c:75:6f:f0:15:2f:13:39:f9:94:ba:88:30:61:e9.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /root/.ssh/known_hosts:1
  remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.7.2
RSA host key for 192.168.7.2 has changed and you have requested strict checking.
Host key verification failed.
4

1 回答 1

3

使用 ssh 连接到此类开发系统的解决方案通常会丢失其配置,即禁用它们的主机密钥检查和存储。

在您的情况下,这可以通过将其放入 ~/.ssh/config 来完成:

Host 192.168.7.*
    UserKnownHostsFile /dev/null
    StrictHostKeyChecking no

但是,请注意不要禁用普通系统的主机密钥检查和存储,因为这会使它们容易受到中间人攻击。

于 2013-10-21T13:25:23.720 回答