Ubuntu中重启ssh服务时提示:Job for ssh.service failed because the control process exited with error code. See

阅读 83

2023-03-24


场景

在Ubuntu中重启ssh服务时提示:

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

Ubuntu中重启ssh服务时提示:Job for ssh.service failed because the control process exited with error code. See_ssh重启失败

实现

按照提示输入:

systemctl status ssh.service

Ubuntu中重启ssh服务时提示:Job for ssh.service failed because the control process exited with error code. See_重启_02

配置文件有错误导致SSH服务重启失败 ,因为刚修改过配置文件。

配置文件位置:

/etc/ssh/sshd_config

使用

vi /etc/ssh/sshd_config

查看后

Ubuntu中重启ssh服务时提示:Job for ssh.service failed because the control process exited with error code. See_Ubuntu_03

可以看到有典型的错误,应该是误操作,将其删掉保存即可。

精彩评论(0)

0 0 举报