1. 程式人生 > >登錄遠程Linux服務器:報Host key verification failed錯誤

登錄遠程Linux服務器:報Host key verification failed錯誤

add att ssh ble ron 執行命令 admin date drop

遠程Linux服務器,報Host key verification failed錯誤。
問題:使用其他電腦登錄遠程Linux服務器,可以登錄,但其中一臺電腦登錄時報該錯誤。
原因:是因為登錄服務器時主機會把它的服務器登錄標識證書記錄下來,下次登錄時會去比對之前的記錄,由於系統重裝,標識變了導致不能繼續登錄。
解決:在客戶端執行命令:ssh-keygen -R 要登錄的服務器ip

錯誤詳情和解決:

LOVE:~ han$ 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 RSA key sent by the remote host is
7d:df:32:b0:dd:56:cb:ab:7b:4e:c1:40:84:6a:49:c2.
Please contact your system administrator.
Add correct host key in /Users/han/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/han/.ssh/known_hosts:10
RSA host key for 110.211.114.117 has changed and you have requested strict checking.
Host key verification failed.
LOVE:~ han$ ssh-keygen -R 110.211.114.117
# Host 111.231.144.197 found: line 10 type RSA

/Users/hanzhaoyang/.ssh/known_hosts updated.
通過以上就可以解決問題。

登錄遠程Linux服務器:報Host key verification failed錯誤