Skip to content

Instantly share code, notes, and snippets.

View shamim-42's full-sized avatar
🏠
Student forever!

Shamim Hossain shamim-42

🏠
Student forever!
View GitHub Profile
@shamim-42
shamim-42 / git-ssh-error-fix.sh
Created March 13, 2023 05:52 — forked from Tamal/git-ssh-error-fix.sh
Solution for 'ssh: connect to host github.com port 22: Connection timed out' error
$ git clone git@github.com: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 git@github.com
ssh: connect to host github.com port 22: Connection timed out
$ # but this might work