报错:Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.

这个报错八成是配置写错了。我是把/etc/ssh/sshd_config里面的 PermitRootLogin 配成了true,正确的值应该是 yes

所以看到这个报错,首先检查自己最近修改的配置有没有写错

执行下面的命令可以找到错误的配置:

/etc/ssh# sshd -T
/etc/ssh/sshd_config line 36: unsupported option "true".

Logo

聚焦前沿AI与大模型技术探索,汇聚开发者及爱好者,共享开源项目、学习资源与行业资讯。

更多推荐