Forum Discussion
TimRiker
Cirrocumulus
Feb 22, 2023Check permissions and contexts on the files in .ssh. This won't work:
# ls -lZ
lrwxrwxrwx. root webusers system_u:object_r:unlabeled_t:s0 authorized_keys -> /var/ssh/root/authorized_keys
lrwxrwxrwx. root webusers system_u:object_r:unlabeled_t:s0 identity -> /var/ssh/root/identity
lrwxrwxrwx. root webusers system_u:object_r:unlabeled_t:s0 identity.pub -> /var/ssh/root/identity.pub
lrwxrwxrwx. root webusers system_u:object_r:unlabeled_t:s0 known_hosts -> /var/ssh/root/known_hosts
but this will:
# ls -lZ
lrwxrwxrwx. root root unconfined_u:object_r:ssh_home_t:s0 authorized_keys -> /var/ssh/root/authorized_keys
lrwxrwxrwx. root root unconfined_u:object_r:ssh_home_t:s0 identity -> /var/ssh/root/identity
lrwxrwxrwx. root root unconfined_u:object_r:ssh_home_t:s0 identity.pub -> /var/ssh/root/identity.pub
lrwxrwxrwx. root root unconfined_u:object_r:ssh_home_t:s0 known_hosts -> /var/ssh/root/known_hosts