解决ubuntu启动SSH服务出现“Failed to start sshd.service: Unit sshd.service not found.”

重现错误

在使用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 @ 2020-11-04 22:43  coderdogz  阅读(24424)  评论(0编辑  收藏  举报
Live2D