在Ubuntu终端输入命令:
ssh localhost
如果出现类似下面的提示则表示没有安装:
ssh: connect to hostlocalhost port22: Connection refused
在Ubuntu终端输入命令,-y表示默认yes
sudo apt-get install -y openssh-server
service ssh start
ps -e | grep ssh
3916?00:00:00: sshd
sshd守护进程启动正常
ifconfig 查看IP地址
![](http://upload-images.jianshu.io/upload_images/3526887-8a167e121924af11.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
登陆试试软件连接这里用的是shell软件输入主机IP地址连接即可
![](http://upload-images.jianshu.io/upload_images/3526887-2ac905493dff7df3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)