% 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.
initially created for M1 macbook, problem occurs on intel MacBook also. updating title & description to remove M1 as it isn't M1 specific.