您好,欢迎访问代理记账网站
  • 价格透明
  • 信息保密
  • 进度掌控
  • 售后无忧

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


分享:

低价透明

统一报价,无隐形消费

金牌服务

一对一专属顾问7*24小时金牌服务

信息保密

个人信息安全有保障

售后无忧

服务出问题客服经理全程跟进