新聞中心
掌握最新的咨詢和行業新聞
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:GN4dmZbmsbaZaSHvpyHJUs4aRyn+AA2y7FHjK7fW5cU.
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:3
Password authentication is disabled to avoid man-in-the-middle attacks.
Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.
root@192.168.1.19: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
lost connection
問題詳情:
通過A服務器scp 到 B服務器,之前有操作過歷史, 但是B服務器重裝了系統。
解決思路1:
A 服務器之前連接過B服務器,之前保存了那個A服務器的IP地址的“指紋”。現在仍然對這個ip地址進行連接,發現其“指紋”和保存的不一樣。出于安全考慮,報錯。
為什么會不一樣,這個原因有很多,例如服務器重裝系統這個應該會導致這個現象,或者其他原因我也不得而知。
刪除舊的指紋。
打開A服務器中的用戶目錄下面的/root/.ssh/known_hosts文件,然后刪除連過這個ip地址的記錄,那么下次連接的時候會認為是第一次連接,所以會重新保存指紋。
解決思路2:
終端輸入:ssh-keygen -R 接收方ip