Remote Execution fails with message Error initializing command: Net::SSH::AuthenticationFailed - Authentication failed for user root@client.example.com in Red Hat Satellite
Environment
- Red Hat Satellite 6
Issue
-
Running a remote execution job from the Satellite UI
Error initializing command: Net::SSH::AuthenticationFailed - Authentication failed for user root@client.example.com Exit status: EXCEPTION -
The failed job added an entry to
/var/log/securefile on the client system.client.example.com sshd[1183008]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedKeyTypes [preauth] client.example.com sshd[1183008]: Connection closed by authenticating user root ipaddress of satellite port 34832 [preauth]
Resolution
-
Check if policy assigned to the client system and check if can apply LEGACY or DEFAULT policy
update-crypto-policies --show update-crypto-policies --set LEGACY OR update-crypto-policies --set DEFAULT
For more KB articles/solutions related to Red Hat Satellite 6.x Remote Execution Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Remote Execution Issues
Root Cause
-
Custom policy applied on the client system
update-crypto-policies --show
Diagnostic Steps
-
The failed job added an entry to
/var/log/securefile on the client system.client.example.com sshd[1183008]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedKeyTypes [preauth] client.example.com sshd[1183008]: Connection closed by authenticating user root ipaddress of satellite port 34832 [preauth]
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.