Bug | SSH 连接时出现 Warning: the ECDSA host key for xxxx

问题描述

重启Docker容器后,进行节点之间的SSH登录发现出现如下提示:

Warning: the ECDSA host key for 'hadoop102' differs from the key for the IP address '172.17.0.3'
Offending key for IP in /root/.ssh/known_hosts:4
Matching host key in /root/.ssh/known_hosts:3

这导致我每次分发脚本都需要按照提示输入yes

解决措施

重新生成ID , 并传到包括自己的所有节点

ssh-copy-id hadoop101
ssh-copy-id hadoop102
posted @ 2021-11-29 01:42  Unirithe  阅读(498)  评论(0)    收藏  举报