ubuntu10.10使用SSH報錯

來源:互聯網
上載者:User

 

以前使用SSH 登入公司伺服器,挺好使!但是,今天它罷工了。

 

像往常一樣,在終端輸入命令登入伺服器:

 

sudo ssh -l root 192.168.0.88 

 

sorry,它提示資訊如下:

 

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

@    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 

51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de. 

Please contact your system administrator. 

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

Offending key in /root/.ssh/known_hosts:1 

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

Host key verification failed. 

 

linux 就是好,有了錯誤它會提示您錯誤在哪,根據列印資訊,我解決了這個問題。

 

使用超級使用者,為了進入root/ 目錄:

 

su 

 

然後輸入超級使用者密碼,進入/root/目錄:

 

cd /root www.2cto.com

 

查看該目錄下面的所有檔案,然後發現.ssh目錄,進入即可!

 

ls -al 

 

cd .ssh/ 

在該目錄下面有個檔案known_hosts,使用vim 開啟該檔案:

 

vim known_hosts 

 

刪除裡面的內容即可,如果你還怕出錯,在刪除內容之前可以備份!

 

再次使用SSH 登入,出現下面的資訊:

 

The authenticity of host '192.168.0.88 (192.168.0.88)' can't be established. 

RSA key fingerprint is 51:58:c2:b3:d3:7a:e6:bb:20:bd:5b:37:a1:87:cc:de. 

Are you sure you want to continue connecting (yes/no)? 

 

yes 即可!搞定!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.