# AWX Git sync fails intermittently — "ssh: connect to host github.com port 22: Connection timed out"

**URL:** <https://forum.ansible.com/t/awx-git-sync-fails-intermittently-ssh-connect-to-host-github-com-port-22-connection-timed-out/43641>\
**Category:** Get Help\
**Tags:** git, awx\
**Created:** [June 30, 2025, 3:49pm UTC](https://forum.ansible.com/t/awx-git-sync-fails-intermittently-ssh-connect-to-host-github-com-port-22-connection-timed-out/43641 "2025-06-30T15:49:23Z")\
**Posts on this page:** 1\
**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 30, 2025, 3:49pm UTC](https://forum.ansible.com/t/awx-git-sync-fails-intermittently-ssh-connect-to-host-github-com-port-22-connection-timed-out/43641/1 "2025-06-30T15:49:23Z")

</div>

I’m seeing regular failures in AWX when syncing from a Git repo over SSH:

```auto
msg: Failed to download remote objects and refs:
  ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

```

The AWX instance has working internet (I can access the UI remotely), and after 5–10 minutes, the same sync job usually succeeds without changes.

**My theory:** maybe AWX hits a specific GitHub SSH endpoint that times out or triggers strict host key checks. I’m not sure.

I’d prefer not to exec into the pod or change global Git config. I want a way to configure this from within AWX itself — maybe via environment variables, project settings, or credential config.

Has anyone solved this purely through AWX config?

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