解决Centos6.5中ssh登陆时Warning:Permanently added (RSA) to the list of known hosts的警告

当主机使用ssh免密码登陆时,弹出Warning:Permanently added (RSA) to the list of known hosts的警告,看着很碍眼。经过如下方法进行解决:vim

1:vim  /etc/ssh/ssh_config(master和slave1都须要设置)
ssh

找到#StrictHostKeyChecking ask去掉注释,并把ask改成no便可spa