問題:
```
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:qsKeZfZAS3BCLZw6OT1a6I1U9MzfZpEfCZDmY63+VQ8.
Please contact your system administrator.
Add correct host key in /Users/wayne/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/wayne/.ssh/known_hosts:10
ECDSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.
Host key verification failed.
```
列出現在的
ssh-add -l
ssh-add ~/.ssh/id_rsa
ssh-copy-id username@remote_host
~/.ssh/authorized_keys
最後:
把 xxx.xxx.xxx.xxx 的 key 從 .ssh/known_hosts 刪掉
http://smelon.blog.51cto.com/877877/245405
http://smelon.blog.51cto.com/877877/245405
沒有留言:
張貼留言