今天要在ubuntu用ssh連MR3020時,一直出現REMOTE HOST IDENTIFICATION HAS CHANGED!警告訊息,是了好幾次還是一樣的結果,當下立馬去找咕狗大神,終於找到原因!!
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
這裡的訊息因電腦不同而不同
Please contact your system administrator.
Add correct host key in /home/conbar/.ssh/known_hosts to get rid of this message.
Offending key in /home/conbar/.ssh/known_hosts:10
RSA host key for 這裡是伺服器端的IP或網址 has changed and you have requested strict checking.
Host key verification failed.
這是因為本機去對伺服端連線時,本機端會產生一個認證,下次本機端要連接時就不用再詢問,自動與伺服端認證,但如果伺服端重灌了,認證就會不一樣,因此會出現這個問題.
這時只要輸入 ssh-keygen -R 伺服器的網址 or IP
再連線一次就會出現 "Are you sure you want to continue connecting (yes/no)?"
就可以正常連線囉!