雁过留声 发表于 2024-6-15 02:13:27

解决ubuntu报错“Failed to start sshd.service Unit sshd.service not fou

解决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.” 的问题。如有其他问题,欢迎留言。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: 解决ubuntu报错“Failed to start sshd.service Unit sshd.service not fou