OCI: SSHD Not Starting With Error"SELinux is preventing sshd from reading its configuration file
in Linux
Applies To:
Oracle Cloud Infrastructure
Oracle Linux
Symptoms:
SSHD Not Starting With Error"SELinux is preventing /usr/sbin/sshd from read access on the file /etc/ssh/sshd_config"
In /var/log/messages
ail_tmp_t, prosody_tmp_t, psad_etc_t, psad_tmp_t, ptal_etc_t, pulseaudio_home_t, pulseaudio_tmpfs_t, puppet_etc_t, puppet_tmp_t, puppetmaster_tmp_t, qmail_etc_t, qpidd_tmp_t, rabbitmq_tmp_t, raco Aug 13 16:40:48 <node> systemd[1]: sshd.service: Service RestartSec=42s expired, scheduling restart. Aug 13 16:40:48 <node> systemd[1]: sshd.service: Scheduled restart job, restart counter is at 1. Aug 13 16:40:48 <node> systemd[1]: Stopped target sshd-keygen.target. Aug 13 16:40:48 <node> systemd[1]: Stopping sshd-keygen.target. Aug 13 16:40:48 <node> systemd[1]: Reached target sshd-keygen.target. Aug 13 16:40:48 <node> sshd[2991]: /etc/ssh/sshd_config: Permission denied Aug 13 16:40:48 <node> systemd[1]: sshd.service: Main process exited, code=exited, status=1/FAILURE Aug 13 16:40:48 <node> systemd[1]: sshd.service: Failed with result 'exit-code'. Aug 13 16:40:51 <node> setroubleshoot[2993]: SELinux is preventing /usr/sbin/sshd from read access on the file /etc/ssh/sshd_config. For complete
Tagged:
0