# AWX Git project sync via SSH not working

**URL:** <https://forum.ansible.com/t/awx-git-project-sync-via-ssh-not-working/35261>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 31, 2021, 4:27pm UTC](https://forum.ansible.com/t/awx-git-project-sync-via-ssh-not-working/35261 "2021-05-31T16:27:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_B](https://avatars.discourse-cdn.com/v4/letter/v/73ab20/32.png) [@Vishnu\_B](https://forum.ansible.com/u/Vishnu_B)\
**Post date:** [May 31, 2021, 4:27pm UTC](https://forum.ansible.com/t/awx-git-project-sync-via-ssh-not-working/35261/1 "2021-05-31T16:27:46Z")

</div>

it’s a new setup, installed AWX using the k3s cluster. I added a project and source control credential(Private key) and when I try to do project sync. I get the below-mentioned error. when I run the same command in the host machine it works fine. No issues with the private key. Can someone help me with this.

Identity added: /tmp/pdd\_wrapper\_25\_2ufmikle/awx\_25\_lfq59ntz/artifacts/25/ssh\_key\_data (awx\_access)

1

2  
PLAY [Update source tree if necessary] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*21:50:27

3

4  
TASK [update project using git] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*21:50:27

5  
fatal: [localhost]: FAILED! =\> {“changed”: false, “cmd”: “/usr/bin/git ls-remote ‘’ -h refs/heads/master”, “msg”: “”, “rc”: 128, “stderr”: “[git@git.XXXXX.com](mailto:git@git.XXXXX.com): Permission denied (publickey,password).\r\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n”, “stderr\_lines”: [“[git@git.XXXXXX.com](mailto:git@git.XXXXXX.com): Permission denied (publickey,password).”, “fatal: Could not read from remote repository.”, “”, “Please make sure you have the correct access rights”, “and the repository exists.”], “stdout”: “”, “stdout\_lines”: }

6

7  
PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*21:50:28

8  
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

9

RegardsVishnu

---

<div class="post-metadata">

**Author:** ![Vishnu\_B](https://avatars.discourse-cdn.com/v4/letter/v/73ab20/32.png) [@Vishnu\_B](https://forum.ansible.com/u/Vishnu_B)\
**Post date:** [June 1, 2021, 2:30am UTC](https://forum.ansible.com/t/awx-git-project-sync-via-ssh-not-working/35261/2 "2021-06-01T02:30:43Z")

</div>

This is fixed. There was a wrong DNS entry in the kube cluster.  
Thanks
