Offending RSA key in ~/.ssh/known_hosts
Add correct host key in /Users/apple/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/apple/.ssh/known_hosts:6
错误
服务器重装后出现如下错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
SHA256:BK5+0u694qqyp81EuqPvY4+EQr2Q9StCeF2haGakqpA.
Please contact your system administrator.
Add correct host key in /Users/apple/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/apple/.ssh/known_hosts:6
RSA host key for [144.34.220.135]:27208 has changed and you have requested strict checking.
Host key verification failed.
解决
vim ~/.ssh/known_hosts
删除[144.34.220.135]:27208这一行
( ^_^)/ ~/code/docker/docker-compose ssh root@144.34.220.135 -p 27208
The authenticity of host '[144.34.220.135]:27208 ([144.34.220.135]:27208)' can't be established.
ECDSA key fingerprint is SHA256:4/HW3U9xWBKwe9FYwQDo7WrjBLm8oLRYREONGs8i4FI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[144.34.220.135]:27208' (ECDSA) to the list of known hosts.
root@144.34.220.135's password:

浙公网安备 33010602011771号