解决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

控制台输入以上代码即可解决 “Failed to start sshd.service: Unit sshd.service not found.” 的问题。如有其他问题,欢迎留言。

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐