Remote execution in Satellite 6 fails with "su: Authentication failure"
Environment
- Red Hat Satellite 6.12
Issue
-
Remote execution job fails with the following output:
su: Authentication failure cat: /var/tmp/foreman-ssh-cmd-8d6a1c64-3c66-4b47-bc07-ffebb6009c2f/exit_code: No such file or directory
Resolution
-
The remote execution job is using the
example-useruser to establish an SSH connection to the target host, then switching to therootuser to perform the action (for example, errata install). -
Check and confirm that the correct password for the
example-useruser is used in the remote execution job configuration.
Root Cause
-
The remote execution job is using the
example-useruser to establish an SSH connection to the target host, then switching to therootuser to perform the action (for example, errata install). -
Authentication is failing on
sudue to incorrect password for theexample-useruser being used in the remote job configuration.
Diagnostic Steps
-
Log in to Satellite's web UI.
-
Find and click on the failed remote execution
Actions::RemoteExecution::RunHostJobtask under Monitor -> Tasks. -
Click on the Dynflow console button to launch the Dynflow Console of the task.
-
Under the Run tab, click on the
3: Actions::ProxyAction (success) [ 8.92s / 0.02s ]step to expand it. -
Check the Output: section of the step for an output like:
- output_type: stdout
output: |
su: Authentication failure
cat: /var/tmp/foreman-ssh-cmd-8d6a1c64-3c66-4b47-bc07-ffebb6009c2f/exit_code: No such file or directory
timestamp: 1695245057.8506823
runner_id: 8d6a1c64-3c66-4b47-bc07-ffebb6009c2f
exit_status: 1
- Check the Input: section of the step for:
proxy_operation_name: ssh
ssh_user: example-user
effective_user: root
effective_user_method: su
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.