ssh REMOTE HOST IDENTIFICATION HAS CHANGED!

连接到docker的时候,有时因为image重新buid过,就提示

It is also possible that a host key has just been changed.

不让连接.

解决也简单:按照提示输入即可:

ssh-keygen -f "/home/XXX/.ssh/known_hosts" -R "[127.0.0.1]:22"

上一篇:CentOS7 Nodejs布署环境


下一篇:做了什么