在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