Ssh connection problem


#1

ssh -T git@github.com
when i try this command to try check ssh connection , the terminal freezes for a few minutes and the message “ssh: connect to host github.com port 22: Connection timed out” comes up.
how do i resolve this?
it is suggested to change the port number but i cant find the proper commands which would work.


#2

This is usually because a firewall is blocking that port from sending anything out.

You can look at some of the solutions here https://stackoverflow.com/questions/15589682/ssh-connect-to-host-github-com-port-22-connection-timed-out