记:linux的ssh开启失败(Active: inactive (dead))

如果使用 systemctl restart ssh  //开启ssh服务提示下面错误,ssh开启失败,使用xshell连接Linux服务器连接不上

●ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; disabled; vendor prese>
Active: inactive (dead)
Docs: man:sshd(8)
man:sshd_config(5)

解决办法:

https://blog.csdn.net/weixin_41632560/article/details/89547638

使用/etc/init.d/ssh start命令,启动成功

posted @ 2021-04-04 22:44  Ying501  阅读(9716)  评论(0编辑  收藏  举报