Add Github SSH Keys
ajxchapman opened this issue · comments
Alex Chapman commented
SSH private keys can be tested against github.com
to see if they are registered against an existing user account. If the key exists the username corresponding to the key will be provided:
$ ssh -i <path to SSH private key> -T git@github.com
Hi <username>! You've successfully authenticated, but GitHub does not provide shell access.
EdOverflow commented
Thank you for your contribution, @ajxchapman.
Zachary Zeitlin commented
The same is true for gitlab.com
:
ssh -i <path to SSH private key> -T git@gitlab.com
Welcome to GitLab, <username>!