Ubuntu上开启SSH服务
查看是否开启了ssh服务是否安装,使用命令:
sudo ps -e | grep ssh
如果安装了的是会有sshd服务的,没有就是没有安装
root:~# ps -e | grep ssh
668 ? 00:00:00 sshd
10327 ? 00:00:00 sshd
安装方法
先更新资源列表,使用命令:
sudo apt-get update
安装openssh-server,使用命令:
sudo apt-get install openssh-server
检测是否安装成功
ps -e | grep ssh