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
标签:pc2,IP,192.168,host,ssh,key,ECDSA 来源: https://blog.csdn.net/YABIGNSHI/article/details/117300138