Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: SSHD Not Starting With Error"SELinux is preventing sshd from reading its configuration file

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!