secureCRT The remote system refused the connection.解決辦法


使用遠程登錄工具SecureCRT登陸ubuntu的時候遇到了這個問題:

secureCRT The remote system refused the connection

這個問題的原因是是Ubuntu沒有安裝openssh。SSH分客戶端openssh-client和服務端openssh-server,openssh-client是客戶端,openssh-server是服務端。當然判斷機器是否安裝ssh服務,可以使用如下命令:

ssh localhost

若反饋:
ssh: connect to host localhost port 22: Connection refused

說明並沒有安裝。所以在終端輸入:

sudo apt-get install openssh-client

安裝openssh-client

sudo apt-get install openssh-server

安裝openssh-server。

安裝完后,終端輸入:

 

ps -e|grep ssh  
若反饋:

1418 ?        00:00:00 sshd

說明ssh-server已經啟動了。當然也可以鍵入:

service ssh start

來啟動服務。此時再連接CRT就會發現已經解決了。


免責聲明!

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



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