When I try to pull, push, or generally do anything to interact with my remote git repo over ssh, the command always fails immediately on the first try but then succeeds if I run it right after for a second time.
The error I get is:
ssh: connect to host github.com port 22: Software caused connection abort
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Once I've run the second (successful) command it seems to reset it and it becomes fine for a period of time, but then if I come back after a couple hours or so, the same occurs. I've tried some solutions from here but with no luck. Can anyone hazard any guesses as to where I can look to fix this?
Thanks