在Vmare下安裝了Ubuntu12.04,發現沒法用xshell進行鏈接,經過查詢資料,發現是Ubuntu沒有安裝ssh,shell
[c:\~]$ Connecting to 192.168.108.135:22... Could not connect to '192.168.108.135' (port 22): Connection failed. Type `help' to learn how to use Xshell prompt.
ubuntu@ubuntu:~$ ps -e |grep ssh 2363 ? 00:00:00 ssh-agent 3838 ? 00:00:00 ssh-agent 6074 ? 00:00:00 sshd 6130 ? 00:00:00 sshd 6318 ? 00:00:00 sshd
若是缺乏ssh-agent或者sshd的任何一個,說明沒有安裝ssh服務。ubuntu
#sudo apt-get install openssh-server
#/etc/init.d/ssh start
#ssh -l 用戶名 本機ip