ssh连接时提示“The authenticity of host xx can’t be ...
来源:互联网 发布:ps cs6 mac中文破解版 编辑:程序博客网 时间:2024/05/19 04:51
转载来自于:http://ju.outofmemory.cn/entry/6415
采用密钥交换的方式来完成ssh中的验证,但可能由于主机的Key有变化,每次ssh连接(或rsync)时就会有提示:The authenticity of host *** can’t be established ,需要输出一个“yes”的交互。
1. 使用ssh连接远程主机时加上“-o StrictHostKeyChecking=no”的选项,如下:
ssh -o StrictHostKeyChecking=no 192.168.xxx.xxx
2. 一个彻底去掉这个提示的方法是,修改/etc/ssh/ssh_config文件(或$HOME/.ssh/config)中的配置,添加如下两行配置:
StrictHostKeyChecking noUserKnownHostsFile /dev/null
修改好配置后,重新启动sshd服务即可,命令为:/etc/init.d/sshd restart (或 service sshd restart )当然,这是内网中非常信任的服务器之间的ssh连接,所以不考虑安全问题,就直接去掉了主机密钥(host key)的检查。
0 0
- ssh连接时提示“The authenticity of host xx can’t be established”
- ssh连接时提示“The authenticity of host xx can’t be ...
- SSH连接时提示“THE AUTHENTICITY OF HOST XX CAN’T BE ESTABLISHED”
- SSH连接时提示“THE AUTHENTICITY OF HOST XX CAN’T BE ESTABLISHED
- ssh连接时去掉“The authenticity of host xx can’t be established”解决方法
- ssh连接The authenticity of host can't be established
- ssh连接The authenticity of host can't be established
- git提交到远程库时提示the authenticity of host can't be established
- ssh The authenticity of host '172.18.19.XXX (172.18.19.XXX)' can't be established.
- SSH的 The authenticity of host xxx.xxx.xxx.xxx can't be established. 问题
- ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题
- ssh登录The authenticity of host x.x.x.x can't be established.的问题
- ssh登录 The authenticity of host 192.168.0.xxx can't be established.
- GIT ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题
- [root@yqiangoracle ~]# ssh localhost The authenticity of host 'localhost (127.0.0.1)' can't be estan
- ssh:出现问题:The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
- ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题
- ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题
- Displaying Bitmap小结
- 计算两个字符串的距离
- Oracle回收站功能开启与关闭
- C语言下使用ringbuffer实现任意数据类型的FIFO
- 出国?上研?工作?回家种田?(一) 出国看世界
- ssh连接时提示“The authenticity of host xx can’t be ...
- Adapter适配器
- Magic Winmail 4.7完美最终破解+mail服务停止了自动修复备份重启工具防止winmail停止
- 【Oracle】CBO版本带来的视图INVALID
- win7+mariadb免安装版
- spring mvc整合json
- android sdk content loader has encountered a problem错误
- 出国?上研?工作?回家种田?(二) 专业与上研相关问题
- ListView实现GridView