the ECDSA host key for ‘pc2‘ differs from the key for the IP address ‘192.168.144.250‘

一 问题描述

安装greenplum,执行gpssh-exkeys -f /home/gpadmin/conf/hostlist时报错:

[ERROR]: Failed to ssh to pc2. No ECDSA host key is known for pc2 and you have requested strict checking.
Host key verification failed.

[ERROR]: Expected passwordless ssh to host pc2
发现ssh 到pc2所在ip可以免密登录,但是ssh pc2报错,且需要输入密码才能登录:

[root@pc1 scripts]# ssh pc2
Warning: the ECDSA host key for 'pc2' differs from the key for the IP address '192.168.144.250'

Offending key for IP in /root/.ssh/known_hosts:1
Matching host key in /root/.ssh/known_hosts:3
Are you sure you want to continue connecting (yes/no)? no
Host key verification failed.

二 解决办法

ssh-keygen -R 192.168.144.250

上一篇:中间件漏洞


下一篇:验证远程主机SSH指纹