Connecting thru SSH to GitHub #195418
Replies: 3 comments 1 reply
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Hi @mdziczkowski! If your SSH connection hangs or times out, there’s a good chance that port 22 is blocked by your network, ISP, or firewall. You can work around this by using SSH over port 443 instead. Update your SSH config file ( Then test the connection: ssh -T git@github.comIf prompted, type After that, you should be able to clone/push normally using SSH: git clone git@github.com:USERNAME/REPO.gitGitHub also documents this workaround here: |
Beta Was this translation helpful? Give feedback.
-
|
It also happened to me. My SSH key was correct, but the connection was still failing because my network/firewall was blocking port 22. I fixed it by using GitHub SSH over port 443. I added this in ~/.ssh/config: Host github.com Then I tested it with: ssh -T git@github.com After accepting the host key, clone/push started working normally with the same SSH URL. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Discussion Type
Product Feedback
Discussion Content
Could anyone please let me know how I can connect using SSH to my repo?
I ask because port 22 is beeing rejected and the docs are focused mainly on the keys and agent
Beta Was this translation helpful? Give feedback.
All reactions