OL : SSHD Fails to Start with "avc: denied { name_bind }"
(Doc ID 2671152.1)
Last updated on JUNE 12, 2020
Applies to:
Oracle Cloud Infrastructure - Version N/A and laterLinux OS - Version Oracle Linux 5.0 to Oracle Linux 8.1 with Unbreakable Enterprise Kernel [5.14.17] [Release OL5 to OL8U1]
Linux x86-64
Symptoms
When trying to start sshd it fails with the following error message in /var/log/audit/audit.log
type=AVC msg=audit(1589723055.663:198): avc: denied { name_bind } for pid=2114 comm="sshd" src=22 scontext=system_u:system_r:sshd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:http_port_t:s0 tclass=tcp_socket permissive=0
and "systemctl status sshd" shows
May 17 14:54:05 sshd[11874]: error: Bind to port 22 on 0.0.0.0 failed: Permission denied. May 17 14:54:05 sshd[11874]: error: Bind to port 22 on :: failed: Permission denied. May 17 14:54:05 sshd[11874]: fatal: Cannot bind any address.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |