ssh登录时Warning:Permanently added (RSA) to the list of known hosts的警告

当主机使用ssh免密码登录时,弹出Warning:Permanently added (RSA) to the list of known hosts的警告。

在这里插入图片描述
通过以下方法进行解决:

vim /etc/ssh/ssh_config(master和slave1都需要设置)

找到#StrictHostKeyChecking ask去掉注释,并把ask改为no即可
在这里插入图片描述
效果测试
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42193489/article/details/89073187