Ssh connection problem


ssh -T
when i try this command to try check ssh connection , the terminal freezes for a few minutes and the message “ssh: connect to host 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.


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

You can look at some of the solutions here