Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github SSH Keys #2

Closed
ajxchapman opened this issue Apr 26, 2019 · 2 comments
Closed

Add Github SSH Keys #2

ajxchapman opened this issue Apr 26, 2019 · 2 comments
Assignees

Comments

@ajxchapman
Copy link

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
Copy link
Collaborator

Thank you for your contribution, @ajxchapman.

@zzeitlin
Copy link

The same is true for gitlab.com:

ssh -i <path to SSH private key> -T git@gitlab.com
Welcome to GitLab, <username>!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants