如何与连接到一台计算机的两个beaglebone黑色进行交互

时间:2013-10-21 12:32:23

标签: linux git ssh

即使更改了其中一个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.

1 个答案:

答案 0 :(得分:2)

将ssh连接到此类开发系统的解决方案(通常会松开其配置)是禁用主机密钥检查和存储。

在你的情况下,这可以通过将其放入〜/ .ssh / config:

来完成
Host 192.168.7.*
    UserKnownHostsFile /dev/null
    StrictHostKeyChecking no

但是,请注意不要禁用正常系统的主机密钥检查和存储,因为这会打开它们以进行中间人攻击。