ssh连接时去掉“The authenticity of host xx can’t be established”解决方法

一个彻底去掉这个提示的方法是,修改/etc/ssh/ssh_config文件(或$HOME/.ssh/config)中的配置,添加如下两行配置:

StrictHostKeyChecking no
UserKnownHostsFile /dev/null

修改好配置后,重新启动sshd服务即可。

centos7重启ssh服务命令为systemctl restart sshd.service


转自:https://blog.csdn.net/juan0728juan/article/details/54358056

猜你喜欢

转载自blog.csdn.net/chuyouyinghe/article/details/80942278
今日推荐