Skip to content

Instantly share code, notes, and snippets.

View akramsheriff5's full-sized avatar

Akram Sheriff akramsheriff5

View GitHub Profile
@akramsheriff5
akramsheriff5 / git-ssh-error-fix.sh
Created January 9, 2023 11:41 — forked from Tamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone [email protected]:xxxxx/xxxx.git my-awesome-proj
Cloning into 'my-awesome-proj'...
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
$ # This should also timeout
$ ssh -T [email protected]
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work