系统相关
首页 > 系统相关> > 记:linux的ssh开启失败(Active: inactive (dead))

记: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命令,启动成功

标签:service,dead,inactive,ssh,Active,man
来源: https://www.cnblogs.com/wy5132/p/14617359.html