在vmware workstation装Linux 在Linux加ssh协议
1.更新源列表
在Linux打开终端窗口 输入“sudo apt-get update”-->回车
输入账号密码
如Ubuntu提示无法获得锁/var/lib/dpkg/lock:
![](https://images2015.cnblogs.com/blog/1171811/201706/1171811-20170608180623231-567107097.png)
完成后继续
2.安装openssh-server在终端输入; sudo apt-get install openssh-server
3.查看ssh服务是否启动 "sudo
ps -e |grep ssh"-->回车-->
有sshd说明已启动 如果没有输入“sudo service ssh start"-->回车-->ssh服务就会启动
4.查看Ubuntu IP地址 输入sudo ifconfig
5.下载putty
或者xshell
6.点击open 输入账户密码进入