赞
踩
报错:
- [root@k8s-master01 ~]# for i in k8s-master03;do ssh-copy-id -i .ssh/id_rsa.pub $i;done
- /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
- /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: SHA256:rArzteWO/BGGFtSZoJkFMeMyQs5X1NldJ7p1Z1iQplY.
- ERROR: Please contact your system administrator.
- ERROR: Add correct host key in /root/.ssh/known_hosts to get rid of this message.
- ERROR: Offending ECDSA key in /root/.ssh/known_hosts:5
- ERROR: ECDSA host key for k8s-master03 has changed and you have requested strict checking.
解决:
- [root@k8s-master01 ~]# cd .ssh/
- [root@k8s-master01 .ssh]# ls
- authorized_keys id_rsa id_rsa.pub known_hosts
- [root@k8s-master01 .ssh]# vim known_hosts
- k8s-master01,192.168.126.129 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGLxA1pZAHQezjFAIYAuS7X/uuzY2W31u463VaPUSU4hT1X767yYIxNnBMYTlYMHeLwCYxJ7V/PwMwt8kQMU6sA
- =k8s-master02,192.168.126.130 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBOoQ8+wbwILcP5o596BxbterD5uimVznQ6z2RuRhSzmUGhwvMlO7bnjFtH/xGwZO54y4CU9F58Xgx+HCLmwC6fQ
- =k8s-node01,192.168.126.131 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBwao5Ni/qlgZaN0grJjj0hc3Gbv0gb4OLjyo2kAbsGI2xnfDhk87/ig52b+x3LGxjhbAcldflX23+tLMdk8+l8=
- k8s-node02,192.168.126.132 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLqAgsemYnLqfuMfkg35xXEqmxBo6eAca4+o0LWybP91PMIEdwxW5tARb+CAv4Y+MMhBXpWgloiO2FF0FIwMqN0=
- k8s-master03,192.168.126.133 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEDtUDmgMDhA8x444IDL7/B8Q+cJOXvoHFzpsfHQJF67JrnIKTiKEIPKtmKXH6Cu8AYDzDouq+NzskbroPMMCyI
- =
- 删除发送失败的IP地址
- [root@k8s-master01 ~]# for i in k8s-master03;do ssh-copy-id -i .ssh/id_rsa.pub $i;done
- /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
- The authenticity of host 'k8s-master03 (192.168.126.133)' can't be established.
- ECDSA key fingerprint is SHA256:rArzteWO/BGGFtSZoJkFMeMyQs5X1NldJ7p1Z1iQplY.
- ECDSA key fingerprint is MD5:e4:0f:4c:b5:ea:59:c4:2e:e8:6f:d6:03:75:fc:70:9b.
- 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
- root@k8s-master03's password:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。