# AWX GitHub Integration - SSH Authentication Failing

**URL:** <https://forum.ansible.com/t/awx-github-integration-ssh-authentication-failing/43629>\
**Category:** Get Help\
**Tags:** windows, awx\
**Created:** [June 29, 2025, 10:21pm UTC](https://forum.ansible.com/t/awx-github-integration-ssh-authentication-failing/43629 "2025-06-29T22:21:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akanox](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@akanox](https://forum.ansible.com/u/akanox)\
**Post date:** [June 29, 2025, 10:21pm UTC](https://forum.ansible.com/t/awx-github-integration-ssh-authentication-failing/43629/1 "2025-06-29T22:21:18Z")

</div>

I’m trying to configure AWX to pull from a private GitHub repository using SSH deploy keys, but I’m getting authentication errors.

Setup:  
AWX with a Git project pointing to: `git@github.com:redacted/ansible-patch-management.git`  
GitHub repository with `main` branch and commits  
SSH key pair created on Windows machine (uploaded the public key to Github as a deploy key, and added the private key in AWX)  
Public key added as deploy key in GitHub repository  
Private key added to AWX credential (Source Control type)  
AWX project configured with branch: `main`

The latest error message:

```auto
fatal: 'origin/main' is not a commit and a branch 'main' cannot be created from it
Failed to checkout main

```

What i have tried so far:

- Verified the repository has a `main` branch with commits
- Enabled “Clean” option in AWX project to force fresh clone
- Confirmed the branch name matches between GitHub and AWX configuration
- Tested that the repository is accessible and has content
- Used both main, master or nothing in the Source Control Branch box under the project

Additional context: The private key is stored in AWX’s PostgreSQL database, so I can’t easily test the SSH connection directly from the AWX container. The error suggests AWX can reach GitHub but fails during the checkout process.

Has anyone encountered this specific error with AWX and GitHub integration? Any suggestions for troubleshooting SSH key authentication issues when the key is managed within AWX?

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/2/22943e04d8e1b2dbf4ac1dab88bc4f599a605b6f.png)

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/e/eacc8fba8647cc968bb70f29366e3de767c523ab.png)

---

<div class="post-metadata">

**Author:** ![anil\_reddy](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anil_reddy/32/8043_2.png) [@anil\_reddy](https://forum.ansible.com/u/anil_reddy)\
**Post date:** [June 30, 2025, 8:34am UTC](https://forum.ansible.com/t/awx-github-integration-ssh-authentication-failing/43629/2 "2025-06-30T08:34:06Z")

</div>

try with `delete` option selected as well.

---

<div class="post-metadata">

**Author:** ![akanox](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@akanox](https://forum.ansible.com/u/akanox)\
**Post date:** [June 30, 2025, 3:35pm UTC](https://forum.ansible.com/t/awx-github-integration-ssh-authentication-failing/43629/3 "2025-06-30T15:35:48Z")

</div>

I am not sure how i got it working, but it managed to connect after all 🙂
