报错: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".