@ 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
SHA256:這裏每一個人都不一樣
Please contact your system administrator.
Add correct host key in /Users/Anan/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/Anan/.ssh/known_hosts:1
RSA host key for 這裏是服務器的IP has changed and you have requested strict checking.
Host key verification failed.複製代碼
會出現這些信息是由於,第一次SSH鏈接時,會生成一個認證,儲存在客戶端(也就是用SSH連線其餘電腦的那個,本身操做的那個)中的known_hosts,可是若是服務器驗證過了,認證資訊固然也會更改,服務器端與客戶端不一樣時,就會跳出錯誤啦~所以,只要把電腦中的認證資訊刪除,連線時從新生成,就一切完美啦~要刪除很簡單,只要在客戶端輸入一個指令bash
ssh-keygen -R +輸入服務器的IP複製代碼
接下來再次鏈接一次,會出現服務器
Are you sure you want to continue connecting (yes/no)?複製代碼
輸入yes,
就完成鏈接啦!同時,新的認證也生成了
在mac下使用終端鏈接服務器方式ssh
ssh root@服務器地址複製代碼