ps -e | grep ssh(检测是否安装 ssh 服务)

1
2
3
4
$ systemctl status sshd
Unit sshd.service could not be found.
$ ps -e | grep ssh
…… ssh-agent

安装 sshd

1
$ sudo apt-get install openssh-server

启动 sshd 服务

1
2
3
$ /etc/init.d/ssh start

ps -e | grep ssh # 再次检测