解決openssh無法登錄的問題

背景

在安裝完openssh之後,還是不能解決登錄的問題。報錯信息如下:

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 ...

解決辦法

重新針對目標ip生成ssh文件,就會將之前舊的文件重新存成.old文件。

ssh-keygen -R <host>

接着在重新使用ssh登錄即可。

參考

stackoverflow

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