安装ssh

sudo apt-get install openssh-server

查看ssh服务运行状态

systemctl status sshd

 

使用apt-get install openssh-server安装SSH后,使用service sshd start开启SSH服务时提示:

Failed to start sshd.service: Unit sshd.service not found.

 解决方案:

添加ssh.service

systemctl enable ssh.service

 

posted on 2024-10-11 15:02  dingyun  阅读(34)  评论(0)    收藏  举报

导航