Failed to restart ssh.service: Unit not found.

谁借莪1个温暖的怀抱¢ 2022-09-09 14:57 26阅读 0赞

1、在修改了sshd_config配置文件以后

vim /etc/ssh/sshd_config

2、重启ssh

service ssh restart

3、出现以下报错

Redirecting to /bin/systemctl restart ssh.service
Failed to restart ssh.service: Unit not found.

4、原因:以上命令都是centos6里面的命令,在centos7需要用

systemctl restart sshd

5、问题完美解决,nice
————————————————

原文链接:https://blog.csdn.net/weixin\_44347111/article/details/105944073

发表评论

表情:
评论列表 (有 0 条评论,26人围观)

还没有评论,来说两句吧...

相关阅读