Follow the steps below to test your SSH connection to GitHub.
$ ssh -T [email protected]
ssh: connect to host github.com port 22: Connection timed out
Then, proceed to edit your SSH configuration.
$ nano ~/.ssh/config
Host github.com
Hostname ssh.github.com
Port 443
$ ssh -T [email protected]
The authenticity of host '[ssh.github.com]:443 ([20.205.243.160]:443)' can't be established.
ED25519 key fingerprint is SHA256:<hash-code>.
This host key is known by the following other names/addresses:
~/.ssh/known_hosts:1: [hashed name]
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[ssh.github.com]:443' (ED25519) to the list of known hosts.
Hi programmerShinobi! You've successfully authenticated, but GitHub does not provide shell access.