streaak / keyhacks

Keyhacks is a repository which shows quick ways in which API keys leaked by a bug bounty program can be checked to see if they're valid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Github SSH Keys

ajxchapman opened this issue · comments

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.

Thank you for your contribution, @ajxchapman.

The same is true for gitlab.com:

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