当前位置:   article > 正文

/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are alr

/usr/bin/ssh-copy-id: info: attempting to log in with the new key(s), to fil

报错:

  1. [root@k8s-master01 ~]# for i in k8s-master03;do ssh-copy-id -i .ssh/id_rsa.pub $i;done
  2. /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
  3. /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  4. /usr/bin/ssh-copy-id: ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  5. ERROR: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
  6. ERROR: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  7. ERROR: IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
  8. ERROR: Someone could be eavesdropping on you right now (man-in-the-middle attack)!
  9. ERROR: It is also possible that a host key has just been changed.
  10. ERROR: The fingerprint for the ECDSA key sent by the remote host is
  11. ERROR: SHA256:rArzteWO/BGGFtSZoJkFMeMyQs5X1NldJ7p1Z1iQplY.
  12. ERROR: Please contact your system administrator.
  13. ERROR: Add correct host key in /root/.ssh/known_hosts to get rid of this message.
  14. ERROR: Offending ECDSA key in /root/.ssh/known_hosts:5
  15. ERROR: ECDSA host key for k8s-master03 has changed and you have requested strict checking.

解决:

  1. [root@k8s-master01 ~]# cd .ssh/
  2. [root@k8s-master01 .ssh]# ls
  3. authorized_keys id_rsa id_rsa.pub known_hosts
  4. [root@k8s-master01 .ssh]# vim known_hosts
  5. k8s-master01,192.168.126.129 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGLxA1pZAHQezjFAIYAuS7X/uuzY2W31u463VaPUSU4hT1X767yYIxNnBMYTlYMHeLwCYxJ7V/PwMwt8kQMU6sA
  6. =k8s-master02,192.168.126.130 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOoQ8+wbwILcP5o596BxbterD5uimVznQ6z2RuRhSzmUGhwvMlO7bnjFtH/xGwZO54y4CU9F58Xgx+HCLmwC6fQ
  7. =k8s-node01,192.168.126.131 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBwao5Ni/qlgZaN0grJjj0hc3Gbv0gb4OLjyo2kAbsGI2xnfDhk87/ig52b+x3LGxjhbAcldflX23+tLMdk8+l8=
  8. k8s-node02,192.168.126.132 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLqAgsemYnLqfuMfkg35xXEqmxBo6eAca4+o0LWybP91PMIEdwxW5tARb+CAv4Y+MMhBXpWgloiO2FF0FIwMqN0=
  9. k8s-master03,192.168.126.133 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEDtUDmgMDhA8x444IDL7/B8Q+cJOXvoHFzpsfHQJF67JrnIKTiKEIPKtmKXH6Cu8AYDzDouq+NzskbroPMMCyI
  10. =
  11. 删除发送失败的IP地址
  1. [root@k8s-master01 ~]# for i in k8s-master03;do ssh-copy-id -i .ssh/id_rsa.pub $i;done
  2. /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
  3. The authenticity of host 'k8s-master03 (192.168.126.133)' can't be established.
  4. ECDSA key fingerprint is SHA256:rArzteWO/BGGFtSZoJkFMeMyQs5X1NldJ7p1Z1iQplY.
  5. ECDSA key fingerprint is MD5:e4:0f:4c:b5:ea:59:c4:2e:e8:6f:d6:03:75:fc:70:9b.
  6. Are you sure you want to continue connecting (yes/no)? yes
  7. /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  8. /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
  9. root@k8s-master03's password:

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/187776?site
推荐阅读
相关标签
  

闽ICP备14008679号