centos 9出现restart sshd failed, stdout: stderr: Job for sshd.service failed because the。。问题

我们在使用centos789的时候,第一次登录ssh后,第二次开始ssh就上不了。出现Job for sshd.service failed because the control process exited with error code. See "systemctl status sshd.service" and "journalctl -xe" for details.

 

解决方法:

输入命令:setenforce 0

再次重启即可

THE END