I had this error occur to me while trying to do a git push (previously I've had no issues connecting to remote):
ssh: connect to host github.com port 22: Resource temporarily unavailable
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
I realized this was caused by the internet connection, as when I switched the wi-fi I no longer had this error and was again able to connect to github.
My question is: Does anybody know why this error occurs, and is there a way to avoid this?
This happens with my university wi-fi and it would be a shame if I cannot use github there.