技術(shù)員聯(lián)盟提供win764位系統(tǒng)下載,win10,win7,xp,裝機純凈版,64位旗艦版,綠色軟件,免費軟件下載基地!

當前位置:主頁 > 教程 > 硬件教程 >

SSH無法連接VPS怎么辦

來源:技術(shù)員聯(lián)盟┆發(fā)布時間:2018-08-18 12:10┆點擊:

  ssh命令連接時,出現(xiàn)錯誤如下:

  zhang-hengde-MacBook-Air:~ henry24264$ ssh root@66.105.230.188

  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

  @ 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

  08:70:a2:d1:8c:a8:e2:a3:75:27:b5:90:ce:54:5b:3d.

  Please contact your system administrator.

  Add correct host key in /Users/henry/.ssh/known_hosts to get rid of this message.

  Offending key in /Users/henry/.ssh/known_hosts:2

  RSA host key for 66.105.230.188 has changed and you have requested strict checking.

  Host key verification failed.

  google之后,找到了解決方案,命令如下,刪除相關(guān)信息即可,

代碼如下      


1 zhang-hengde-MacBook-Air:~ henry24264$ vi ~/.ssh/known_hosts

 

  之后會看到如下信息:將下面的ssh-rsa全部刪除即可,vi命令后,左右鍵找到下面信息的位置,然后在選中行處,按dd即可刪除一行。

  192.168.1.2 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAs7tE1nlC8YUMHkJUmSpFeJCc0ztFQiWGIKlyrnf4KVCz+Ece/yY59QXnVG7b0DWA/wyzlaGRdumWFexX4Y7VE3WunEeXVPMRjF0YZgG5qW6EDXNMEquZzI5k7Jg96VGq+5ZzhtsRhUqXH1aNrMYydRfMUFDXTh+a3jKcoQLx9IiifouUuh5JEelql9w9FRgmOgOqmm3CVbn33mblyHZa0UOa3GDpFGRxFjxyPVLuOD90rJIVc126CxIK3TmsFS0emO7qxpz4mrNG/1xpCqgKxNejBkrlUtxzLxGbwuod3HPX7OB28uk1RdGsXhcZtKsPph3a04i7Y5C5QZ1XDXFzDQ==

  192.168.1.3 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsI5fLkoQayuhjMLXaE69VlxA7en/SmxXs+VDjgXLGLLTLdSOxki1cBDzuPm4FefmES4A3X3mfAB8L46rFnPJe45hca4U6uC