您好,欢迎来到[编程问答]网站首页   源码下载   电子书籍   软件下载   专题
当前位置:首页 >> 编程问答 >> 网络通信 >> SSH 出现 The authenticity of host xxx can't be established 什么意思?

SSH 出现 The authenticity of host xxx can't be established 什么意思?

来源:网络整理     时间:2016/11/13 4:34:19     关键词:

关于网友提出的“ SSH 出现 The authenticity of host xxx can't be established 什么意思?”问题疑问,本网通过在网上对“ SSH 出现 The authenticity of host xxx can't be established 什么意思?”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: SSH 出现 The authenticity of host xxx can't be established 什么意思?
描述:

如图:


解决方案1:

这个原因可能是本地主机的key发生了变化,因此每次SSH链接都会有提示,只需要在交互下输入yes即可。
当然如果长久的想解决问题,可以采用以下方法:
1、使用ssh连接远程主机时加上“-o StrictHostKeyChecking=no”的选项,去掉对主机的验证检查。

ssh  -o StrictHostKeyChecking=no  192.168.xxx.xxx

注:192.168.xxx.xxx 为本地ip地址:windows ipconfig查看,linux ifconfig查看

2、当然你也可以直接改配置文件信息,这样彻底去掉验证。

修改/etc/ssh/ssh_config文件(或$HOME/.ssh/config)中的配置,添加如下两行配置:


StrictHostKeyChecking no
UserKnownHostsFile /dev/null

注:不过采用第二种方法,容易造成潜在的危险。可以参考Stackoverflow上的题:
ssh: The authenticity of host 'hostname' can't be established


以上介绍了“ SSH 出现 The authenticity of host xxx can't be established 什么意思?”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/4085491.html

相关图片

相关文章