出现的错误现象
service sshd restart
Job for ssh.service failed because the control process exited with error code.
See "systemctl status ssh.service" and "journalctl -xe" for details.
查找出现的错误原因
根据错误提示运行
systemctl status ssh.service
#提示为
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: >
Active: failed (Result: exit-code