Restarting sshd (via systemctl): Job for sshd.service failed because the control process exited wit

Restarting sshd (via systemctl): Job for sshd.service failed because the control process exited with error code. See “systemctl status sshd.service” and “journalctl -xe” for details.

升级openssh后重启sshd服务报错
报错信息如下
在这里插入图片描述
通过/usr/sbin/sshd -T命令查看发现是权限问题。

/usr/sbin/sshd -T

Restarting sshd (via systemctl): Job for sshd.service failed because the control process exited wit_第1张图片
设置完权限后正常重启sshd服务

chmod -R 600 /etc/ssh/*

在这里插入图片描述

你可能感兴趣的:(openssh升级,报错,linux,服务器,运维,ssh)