'Rancher/Fleet GitRepo git ls-remote error

Within Rancher Continuous Delivery, I am seeing an error on polling the GitHub repository with the below error:

git ls-remote head master error exit status 128 detail ssh connect to host port 22 operation times out fatal could not read from remote repository please make sure you have the correct access rights and the repository exists

Within the GitRepo item itself on the Rancher UI, the following can be seen within the resource:

enter image description here

I am using SSH authentication to a private enterprise GitHub repository. The access is intermittent (it will pick up changes when I pause/unpause or force the update). After some time, it will go into this state and will not pick up the changes in the repo until the forced update is done manually.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source