When configuring an Ansible Open Source integration in Aria Automation using an SSH private key for authentication, the connection fails after 3 retries. This occurs even when the private key has been validated to work outside of Aria Automation (e.g., via a direct SSH session).
The error indicates that the connection was rejected 3 times.
VMware Aria Automation (formerly vRealize Automation)
The Aria Automation Ansible Open Source integration is designed to support only unencrypted SSH private keys. The integration interface does not have a field or mechanism to store or pass a passphrase associated with an encrypted private key during the connection attempt.
To successfully connect the Ansible integration, you must use an unencrypted SSH private key.
Generate a new key pair without a passphrase.
Note: You may use tools like ssh-keygen or PuTTYgen to create a new key pair. Ensure you leave the passphrase field empty.
Verify the new private key is unencrypted. The key file should not contain the header "ENCRYPTED" (or similar) at the beginning of the file content.
Update the Ansible target host with the new corresponding public key (if public key was regenerated during step 1.).
In Aria Automation, navigate to the Ansible Open Source integration settings.
Replace the contents of the private key field with the new, unencrypted private key.
Save and test the connection.
This is expected behavior and a current limitation of the Ansible Open Source integration in Aria Automation. If you are unable to use an unencrypted key due to security policies, you would need to explore alternative integration methods (e.g., password-based authentication) or consider using a different integration method (if available).