第一步:安裝openssh-server
#sudo apt-get install openssh-server
第二步:查看ssh服務是否已經運行,執行
#ps -e | grep ssh
執行完后可以看到ssh-agent和sshd都運行了。
第三步:重啟shh服務
#service sshd restart
第四步:從別的機器上用secureCRT登錄Ubundu機器,輸入用戶名密碼,終端顯示:
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)
* Documentation: https://help.ubuntu.com/
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
hy@hy-Aspire-SA10:~$ pwd
/home/hy
這說明SSH服務已經成功了。
至此全文結束,有問題還望您提出。
