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"

posted @   永远的幻想  阅读(223)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示