ProxmoxVE集群的SSH错误、迁移错误、vncproxy错误
有些时候由于错误操作导致一些关于SSH的错误,比如登录某个节点后访问其他节点的控制台会显示:
Host key verification failed.
TASK ERROR: Failed to run vncproxy.
或者:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:****************************************
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending RSA key in /etc/ssh/ssh_known_hosts:1
remove with:
ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R "****"
Host key for pve101 has changed and you have requested strict checking.
Host key verification failed.
TASK ERROR: Failed to run vncproxy.
又或者迁移虚拟机的时候报错:
2023-12-14 14:08:16 # /usr/bin/ssh -e none -o 'BatchMode=yes' -o 'HostKeyAlias=pve103' root@******* /bin/true
2023-12-14 14:08:16 Host key verification failed.
2023-12-14 14:08:16 ERROR: migration aborted (duration 00:00:01): Can't connect to destination address using public key
TASK ERROR: migration aborted
网上一堆什么ssh -o 'HostKeyAlias=<Target node Name>' root@<Target node IP>或者ssh -i或者ssh-keygen -R之类的试下来全部无效。
最终在pve官网论坛上找到一个方法,在节点上重启pveproxy服务解决了问题。
systemctl restart pveproxy如果其他方法解决不了的,可以试试。
示例:在p101节点登录web页面访问p103节点报错。根据报错信息,在p101节点上执行在103节点上的报错修正说明:
ssh-keygen -f "/etc/ssh/ssh_known_hosts" -R "p103"会有提示删除了几个关于p103的key,然后在p101 上继续执行,ssh登录一次p103(比如p103的ip地址是192.168.1.103)
ssh 192.168.1.103返回是否确认输入yes确认登录,如果登录成功了,再上p103执行服务重启
systemctl restart pveproxyr
然后尝试故障是否排除
本文地址:http://cms.xisix.com:8880/post-138.html
添加新评论