So I followed the guide on how to add a SSH key to GitHub, and added a new SSH key with a passphrase to GitHub and the SSH agent. Now, if I run ssh -T git@github.com as described in the guide to test if I set everything up correctly, it doesn't even prompt me for my passphrase, but immediately returns ssh: connect to host github.com port 22: Connection refused. I have both openssh-server and openssh-client installed and the SSH service is running.
Help would be appreciated.
UPDATE: When I try and clone a repository which for which I have write access from a friend's GitLab instance, it throws the same error. Seems like this is a problem with SSH, not with the keys. (I have them added to the instance.)
ssh -T git@github.com. GitHub does not provide shell access. – A.B. Apr 18 '15 at 18:28% ssh -T git@github.com Hi <you_username>! You've successfully authenticated, but GitHub does not provide shell access.– A.B. Apr 18 '15 at 18:30ssh -Tv git@github.com, add the remote IP address that is shown (for me 140.82.121.4) to SSH Authorisation on port 22 and you should be able to use port 22 and not switch to 443. – Jono May 09 '22 at 14:20