% ssh -T git@github.com
ssh: connect to host github.com port 22: Operation timed out
% vi ~/.ssh/config
add the following to the config file
# allows git ssh
Host github.com
Hostname ssh.github.com
Port 443
then try the following
% ssh -T -p 443 git@ssh.github.com
Hi 1solation! You've successfully authenticated, but GitHub does not provide shell access.
follow the usual guide on GitHub docs to initially generate a new SSH key and then add said new key to GitHub first. Then apply this fix if you're getting the
ssh: connect to host github.com port 22: Operation timed out
error