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

Posted 雅冰石

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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

以上是关于the ECDSA host key for ‘pc2‘ differs from the key for the IP address ‘192.168.144.250‘的主要内容,如果未能解决你的问题,请参考以下文章