# Issue with OpenSSH Machine Credential Using infra.controller\_configuration in AAP 2.4

**URL:** <https://forum.ansible.com/t/issue-with-openssh-machine-credential-using-infra-controller-configuration-in-aap-2-4/11135>\
**Category:** Get Help\
**Tags:** aap\
**Created:** [November 25, 2024, 5:20pm UTC](https://forum.ansible.com/t/issue-with-openssh-machine-credential-using-infra-controller-configuration-in-aap-2-4/11135 "2024-11-25T17:20:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pushparaj\_Gothandam](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pushparaj_gothandam/32/5538_2.png) [@Pushparaj\_Gothandam](https://forum.ansible.com/u/Pushparaj_Gothandam)\
**Post date:** [November 25, 2024, 5:20pm UTC](https://forum.ansible.com/t/issue-with-openssh-machine-credential-using-infra-controller-configuration-in-aap-2-4/11135/1 "2024-11-25T17:20:45Z")

</div>

I am creating machine credentials in Ansible Automation Platform (AAP) 2.4 using the `infra.controller_configuration` collection. The SSH private key being used is in OpenSSH format. However, when I attempt to use these credentials in AAP, I encounter the following error:

```auto
error loading key "/runner/artifacts/<jobid>/ssh_key_data"

```

nterestingly, when I manually paste the same OpenSSH private key directly into the AAP web console, the credential works perfectly fine.

Could this issue be related to how `infra.controller_configuration` processes or stores OpenSSH keys? Has anyone experienced similar issues or could suggest a workaround?
