So I’ve been having issues with using ssh keys on github. I get this message when trying to clone a private repo over ssh or running the command “ssh -T git@github﹒com”:
ssh: connect to host github.com port 22: Connection timed out
It seems to be a common issue that can be fixed by connecting over https with the command “ssh -vT -p 443 email@example.com﹒com”, but in my case I get the same error with of course the different port and url. I’ve also tried changing my DNS to cloudflair’s as someone suggested on stackoverflow.
To give some background information, I’m running linux on my pc and I’m connected to my home wifi. This only happens on my own network, if I use my phone as a hostpot or when I go to another network ssh seems to work without issues on github. I can also ssh into other servers, so It has to be something specific from github. I’m assuming this has something to do with my ISP, but I have no clue on what the problem is or how to solve it.
This is the full output of “ssh -vvvT git@github﹒com”:
OpenSSH_8.8p1, OpenSSL 1.1.1m 14 Dec 2021 debug1: Reading configuration data /home/miguel/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/miguel/.ssh/known_hosts' debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/miguel/.ssh/known_hosts2' debug2: resolving "github﹒com" port 22 debug3: resolve_host: lookup github﹒com:22 debug3: ssh_connect_direct: entering debug1: Connecting to github﹒com [22.214.171.124] port 22. debug3: set_sock_tos: set socket 3 IP_TOS 0x48 debug1: connect to address 126.96.36.199 port 22: Connection timed out ssh: connect to host github﹒com port 22: Connection timed out
I’ve been using the cli client to auth over https over the past months, but I now need to use ssh as a requirement, so I’d be really helpful if anyone knew what exacly am I missing here.