使用遠程登錄工具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就會發現已經解決了。