E20-ssh分发密钥报错

[s-linuxad@T-Ansible-v-szzb scripts]$  ssh-copy-id -i ~/.ssh/id_dsa.pub s-linuxad@10.0.138.48
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed

/usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
ERROR: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
ERROR: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
ERROR: It is also possible that a host key has just been changed.
ERROR: The fingerprint for the ECDSA key sent by the remote host is
ERROR: 21:f2:a9:a8:91:8f:53:89:6e:d9:b3:15:6c:0f:67:0a.
ERROR: Please contact your system administrator.
ERROR: Add correct host key in /home/s-linuxad/.ssh/known_hosts to get rid of this message.
ERROR: Offending ECDSA key in /home/s-linuxad/.ssh/known_hosts:1166
ERROR: ECDSA host key for 10.0.138.48 has changed and you have requested strict checking.
ERROR: Host key verification failed.

[s-linuxad@T-Ansible-v-szzb scripts]$ ssh-keygen -R 10.0.138.48
# Host 10.0.138.48 found: line 1166 type ECDSA
/home/s-linuxad/.ssh/known_hosts updated.
Original contents retained as /home/s-linuxad/.ssh/known_hosts.old
[s-linuxad@T-Ansible-v-szzb scripts]$  ssh-copy-id -i ~/.ssh/id_dsa.pub s-linuxad@10.0.138.48
The authenticity of host '10.0.138.48 (10.0.138.48)' can't be established.
ECDSA key fingerprint is 21:f2:a9:a8:91:8f:53:89:6e:d9:b3:15:6c:0f:67:0a.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
s-linuxad@10.0.138.48's password: 

Number of key(s) added: 1

Now try logging into the machine, with:   "ssh 's-linuxad@10.0.138.48'"
and check to make sure that only the key(s) you wanted were added.

主要命令是 ssh-keygen -R "远程连接的IP"

转载于:https://my.oschina.net/u/3635512/blog/1786027

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值