I seem to be getting at random ssh checkout errors. Both my CI workers as well as dev machines themselves are getting the following error at what seems to be at random times.
stderr: There was a problem while connecting to …
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Can anyone provide any help with tracking down what the issue could be?
Let me know if more information is needed to proceed.
It doesn’t seem to be a network issue as you can retry seconds after the error and it will work just fine. There are no ip conflicts and the server has been restarted multiple times as well as increased in resources.
Anyone have any ideas/suggestions to even go about debugging this?
I have been dealing with this for some while now since one of the early major updates and I just want to figure out a way to at least make some sort of progress on working towards finding out the cause.
Even if you don’t have the answer, I am open to digging in to debug.
You can specify the username that SSH should send to the remote system as part of your remote’s URL. Put the username, followed by an @, before the remote hostname.