Start operation timed out. Terminating.Failed to start openbsd secure shell server

【问题说明】
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_第1张图片
Start operation timed out. Terminating.Failed to start openbsd secure shell server_第2张图片
【检查处理】

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

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

systemctl daemon-reload #重载systemctl服务

在这里插入图片描述
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_第3张图片

你可能感兴趣的:(linux_FAQ)