Failed to restart ssh.service: Unit not found. Centos7不能启动ssh服务

升级ssh后重启服务

systemctl restart sshd.service

遇到报错 : Failed to restart ssh.service: Unit not found.

解决方法  执行以下命令即可 【进入/etc/init.d/下目录  ll命令可以看到sshd服务 启动服务即可

cd /etc/init.d/

service sshd start

猜你喜欢

转载自blog.csdn.net/weixin_52998454/article/details/129714514