VPS 修改密碼后 Mac 終端連接不上的解決方案


 

本文地址:https://www.cnblogs.com/veinyin/p/11543225.html

 

通過搬瓦(這居然是個敏感詞)工買的 VPS 由於密碼只出現一次  當時沒記住  再想連接只能更新密碼了

但是卻發現連不上了 提示信息如下

 

 1 ssh -p port root@ip  2 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 3 @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
 4 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
 5 IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
 6 Someone could be eavesdropping on you right now (man-in-the-middle attack)!
 7 It is also possible that a host key has just been changed.
 8 The fingerprint for the RSA key sent by the remote host is
 9 SHA256:+fOgw8j3Q07aT1XmTd1+EFe4fp8RSoEM5lOk/ZVtYwY.
10 Please contact your system administrator.
11 Add correct host key in /Users/veinyin/.ssh/known_hosts to get rid of this message.
12 Offending RSA key in /Users/veinyin/.ssh/known_hosts:11
13 RSA host key for [ip]:port has changed and you have requested strict checking.
14 Host key verification failed.

 

在 12 行可以看到 是我們的驗證信息不對  還是之前密碼生成的內容  在控制台中輸入

vim .ssh/known_hosts

 

找到對應 ip 的那一行  刪除后按 ·ESC·  輸入 :wq 保存修改

再次連接就可以了 

 

END~~~≥ω≤

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM