[root@tk-arm-jenkins .kube]# scp root@192.168.144.210:/root/.kube/config ./config
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:dBFeep6emWX5kogwv6KcuPEvqdyjj3o+Gem7l9zPCTc.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /root/.ssh/known_hosts:2
Host key for 192.168.144.210 has changed and you have requested strict checking.
Host key verification failed.
scp: Connection closed
原因:远程主机的ssh公钥发生了变化,两边不一致导致的。
解决办法: 删除本地对应ip的在known_hosts相关信息,一般路径在/root/.ssh/known_hosts