GitHub:- Error – “ssh: connect to host github.com port 22: Connection timed out”

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

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.

Network Client Diagnostic Tools

Please reach out to network client diagnostic tools.

Try network port diagnostic tools like telnet, etc.

Particulars:-

  1. Host:- Github.com
  2. 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.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s