清除SSH祕鑰的命令

重新安裝了openmediavault之後在連接就是這樣,具體的原因是因爲主機保存了以前的祕鑰

PS C:\Users\qs> ssh [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:RamM+z+P0ZkUkk9MMzizQJy8uAgLOgq1LS35ZBBJtHg.
Please contact your system administrator.
Add correct host key in C:\\Users\\qs/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\qs/.ssh/known_hosts:7
ECDSA host key for 10.11.12.2 has changed and you have requested strict checking.
Host key verification failed.

 

所以現在執行

ssh-keygen -R 10.11.12.2

ssh-keygen -R yourip

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章