1、Warning: the ECDSA host key for ‘slave2‘ differs from the key for the IP address ‘219.244.48.234‘
Offending key for IP in /home/hadoop/.ssh/known_hosts:3
Matching host key in /home/hadoop/.ssh/known_hosts:8
问题解决:将Offending key for IP in /home/hadoop/.ssh/known_hosts:3中提示的known_hosts文件打开,(用:set nu 添加里面的编号)删除第三行内容就ok了,问题完美解决
但是还有提示:Warning: Permanently added the ECDSA host key for IP address ‘219.244.48.234‘ to the list of known hosts.
问题解决:在问题主机输入:ssh-keygen -R 219.244.48.234(注意是在出错IP主机操作)
完美问题解决
如果ssh slave1 没有反应就是ssh没有装好或是无密码登录没有配好
如果能ssh自己本机,不能ssh Master机器,很可能是hosts/hostname文件里面添加的Slave和Master的问题,很可能是IP输入错误
时间: 2024-10-02 06:37:51