Description of problem: When following the documentation, in step 4, the user is told to run: [root@sat56] # useradd swreport [root@sat56] # mkdir /home/swreport/.ssh This results in /home/swreport/.ssh having an incorrect SELinux context (which will prevent public key auth from working). See below. #ls -lZa /home/swreport/ drwx------. swreport swreport unconfined_u:object_r:user_home_dir_t:s0 ./ drwxr-xr-x. root root system_u:object_r:home_root_t:s0 ../ drwxr-xr-x. root root unconfined_u:object_r:user_home_t:s0 .ssh/ Expected results: In step 7, we'd need to add a step to have the user run 'restorecon -R /home/swreport/.ssh'
https://access.redhat.com/site/documentation/en-US/Red_Hat_Satellite/5.6/html-single/Installation_Guide/index.html Step 7 now reads: Set permissions and the SELinux content on the .ssh directory and authorized_keys file for the swreport user. [root@sat56] # chown -R swreport:swreport /home/swreport/.ssh [root@sat56] # chmod 700 /home/swreport/.ssh [root@sat56] # chmod 600 /home/swreport/.ssh/authorized_keys [root@sat56] # restorecon -R /home/swreport/.ssh