Background
Attempting to upload my latest code changes to GitHub, but no go.
Error
Here are the error messages.
Error – Git Push
Image
Textual
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.
TroubleShooting
Wanted to see if it was just sending updates that are failing.
Let us see what happens with pulling files from GitHub.
Git
Git Command Line
Error – Git Pull
Textual
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.
Network Client Diagnostic Tools
Please reach for network client diagnostic tools.
The most basic network port diagnostic tools such as telnet will suffice.
Particulars:-
- Host:- Github.com
- Protocol
- SSH ( TCP 22 )
Confirmed that SSH Network Protocol-Traffic is indeed blocked.
Remediation
Opened up SSH Protocol ( TCP 22 ) on the network equipment.
Summary
Obviously will not have this problem if we are using HTTP to connect to GitHub.
The problem is manifesting due to the fact that we are using SSH.
Please continue to use SSH; as it is a more secure.