即使更改了 BBB 的 IP 之一,当我尝试连接时,其配置也会恢复为默认值,是否有人尝试过此操作,如果有,请告诉我解决方案的确切步骤。 问题: root@silvan-DL-H61MXP:~# ssh [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 连接到此类开发系统(通常会丢失配置)的解决方案是禁用主机 key 检查和存储。
在您的情况下,可以通过将其放入 ~/.ssh/config 来完成:
Host 192.168.7.*
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
但是,请注意不要禁用正常系统的主机 key 检查和存储,因为这会使它们遭受中间人攻击。
关于linux - 如何与连接到一台计算机的两个 beaglebone black 进行交互,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19494619/