完成线上服务器 切换后,链接ssh出现一下问题:
***.yuan@***yuan-ThinkPad-Edge-E430:~/kule/www.kuulabu.com$ scp sysadm@www.kuulabu.com:/tmp/2014-09-17.10-16-05.+0000.Kuulabu.sql.gz /tmp/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The RSA host key for www.kuulabu.com has changed,
and the key for the corresponding IP address 180.153.223.89
is unchanged. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
Offending key for IP in /home/***.yuan/.ssh/known_hosts:20
remove with: ssh-keygen -f "/home/***.yuan/.ssh/known_hosts" -R 180.153.223.89
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
3d:d2:9b:28:33:49:02:43:91:0b:bf:3e:19:2f:98:55.
Please contact your system administrator.
Add correct host key in /home/***.yuan/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/***.yuan/.ssh/known_hosts:3
remove with: ssh-keygen -f "/home/***.yuan/.ssh/known_hosts" -R www.kuulabu.com
RSA host key for www.kuulabu.com has changed and you have requested strict checking.
Host key verification failed.
***.yuan@***yuan-ThinkPad-Edge-E430:~/kule/www.kuulabu.com$ cd
***.yuan@***yuan-ThinkPad-Edge-E430:~$ vi /home/***.yuan/.ssh/known_hosts
错误原因是: 当通过ssh链接服务器的时候,系统会自动在自己的电脑上生成一个密钥,此密钥是要链接的域名和ip相关的。所以,由于我切换服务器后ip变了,所以出现错误。
解决方案:/home/***.yuan/.ssh/known_hosts:3 。
编辑文件,删除文件中的第三行。
或
执行ssh-keygen -f "/home/***.yuan/.ssh/known_hosts 命令。
相关推荐
Jenkins Host key verification failed问题解决 Jenkins 是一个流行的自动化构建工具,但是在使用过程中经常会遇到一些问题,其中一个常见的问题就是 Host key verification failed。这个问题的出现会导致 Jenkins ...
title: Git提示Host key verification failed- 报错- 报错问题描述Git提示Host key verification f
sshpass -p 'your_password' ssh user@remote_host bash /path/to/run_on_remote.sh ``` 这将在远程主机上运行指定的脚本,而无需人工干预。 ### 脚本化和安全性 在自动化环境中,将密码硬编码到脚本中是不安全的...
在使用SSH证书时,如果证书过期,会报错“Host key verification failed.”。解决方法是更新证书,或者在首次连接时接受新主机的指纹。 6. **版本不匹配(Protocol Mismatch)** 如果两端SSH客户端和服务器的版本...
2. **错误2:Host key verification failed.** 这表示客户端无法识别服务器的主机密钥,可能是首次连接或服务器密钥已更改。解决方法: - 手动接受新的主机密钥(提示时输入“yes”)。 - 如果是误报,检查是否有...
2. **错误提示:“Host key verification failed”**:这是由于客户端的SSH主机密钥与服务器上的密钥不匹配。确认服务器的密钥是否被更新,或者首次连接时是否需要添加到知道的主机列表。 二、认证问题 1. **错误...
当出现“Host key verification failed”错误时,检查网络是否受到中间人攻击,或确认交换机的配置是否有误。如果确定没有问题,按照提示更新known_hosts文件,以消除警告。 总之,配置华为S5130的Web、Telnet和SSH...
一、安装前准备 磁盘规划 使用iscsi共享磁盘做成raw设备 Vote_OCR /dev/sdb1 /dev/raw/raw1 Vote_OCR /dev/sdb2 /dev/raw/raw2 Vote_OCR /dev/sdb3 /dev/raw/raw3 Vote_OCR /dev/sdb5 /dev/raw/raw4 ...
5. **用户无法通过SSH登录**:如果收到“Host key verification failed”的错误,首先检查用户的~/.ssh/known_hosts文件,可能需要清除已知主机的记录。此外,检查SSH服务器配置(如sshd_config文件)和防火墙设置。...