启动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

启动ssh
service sshd start

你可能感兴趣的:(启动SSH服务出现“Failed to start sshd.service: Unit sshd.service not found.”)