我有一些云盒经常改变他们的IP.
我使用主机名ssh,但每次服务器启动时都必须编辑known_hosts文件,原因是此错误消息:
- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- @ 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 the RSA host key has just been changed.
- The fingerprint for the RSA key sent by the remote host is…
除了与我想要做的事情相关的任何安全风险之外,有没有办法可以忽略此错误或自动覆盖known_hosts文件,这样我自己就不必总是编辑它?