Failed to restart ssh.service: Unit not found.
1、在修改了sshd_config配置文件以后vim /etc/ssh/sshd_config2、重启sshservice ssh restart3、出现以下报错Redirecting to /bin/systemctl restart ssh.serviceFailed to restart ssh.service: Unit not found.4、原因:以上命令都是centos6里面的命令,
·
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
更多推荐
已为社区贡献1条内容
所有评论(0)