Linux 如何与连接到一台计算机的两个beaglebone black交互

Linux 如何与连接到一台计算机的两个beaglebone black交互,linux,git,ssh,Linux,Git,Ssh,即使在更改了BBB的一个IP后,当我尝试连接时,其配置也会恢复为默认配置,是否有人尝试过此操作,如果是,请告诉我解决方案的确切步骤。 问题: root@silvan-DL-H61MXP:~#sshroot@192.168.7.2 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@

即使在更改了BBB的一个IP后,当我尝试连接时,其配置也会恢复为默认配置,是否有人尝试过此操作,如果是,请告诉我解决方案的确切步骤。 问题: root@silvan-DL-H61MXP:~#sshroot@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.

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

在您的情况下,可以将其放入~/.ssh/config中:

Host 192.168.7.*
    UserKnownHostsFile /dev/null
    StrictHostKeyChecking no

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

使用:ssh-keygen-f”/root/.ssh/known_hosts“-R 192.168.7.2
删除。你试过了吗?是的,我试过了,仍然有问题。没有找到配置文件,怎么办?@virtplay用上面的内容创建它。