【问题说明】
ssh在Ubuntu启动时,一直报超时,服务启动失败失败,报错信息:Start operation timed out. Terminating.Failed to start openbsd secure shell server,如下如所示:

Start operation timed out. Terminating.Failed to start openbsd secure shell server
Start operation timed out. Terminating.Failed to start openbsd secure shell server
【检查处理】

systemctl stop ssh.service #关闭由systemctl控制的ssh启动

rm /lib/systemd/system/ssh.service #删除ssh的服务配置文件

systemctl daemon-reload #重载systemctl服务

Start operation timed out. Terminating.Failed to start openbsd secure shell server
sshd.init是源码包自带的ssh服务脚本了,把它拷贝到/etc/init.d/目录下

copy sshd.init /etc/init.d //我的环境检查该目录下没有sshd.init文件

systemctl start ssh.service //重启服务
Start operation timed out. Terminating.Failed to start openbsd secure shell server

相关文章:

  • 2021-05-02
  • 2021-12-23
  • 2022-01-08
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2021-12-02
  • 2021-08-08
  • 2021-05-31
  • 2021-06-28
  • 2021-06-25
相关资源
相似解决方案