linux之ssh连接时提示“The authenticity of host xx can’t be established”
描述:
集群已经配置了ssh免密钥登陆,然后出现“The authenticity of host xx can’t be established”,输入yes后可以正常操作。
解决办法:
修改/etc/ssh/ssh_config:
StrictHostKeyChecking no UserKnownHostsFile /dev/null
重启:
/etc/rc.d/init.d/sshd restart