linux中解决Host key verification failed问题

问题:集群中node2重启是突然: Host key verification failed

hostname:node2

删掉~/.ssh中的konws_host文件

rm ~/.ssh/known_hosts

还是不行

rm ~/.ssh/authorized_keys
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

集群中其他虚拟机用ssh-copy-id将密钥发送到弄得node2

node1、node3、node4执行命令:

ssh-copy-id node2

 

你可能感兴趣的:(Linux)