'How to identify github user with ssh key?
I want to disable a working git ssh key. But do not know the owner of the ssh key. For both disabling the key or removing the user, I would need to know the user details.
The file:.git/config
does not include the user information.
And I face the below error when I try to commit
*** Please tell me who you are.
Run
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
FYI: The key is SAML authorized.
Can I know if there is a way we can find the git user using the ssh key?
Solution 1:[1]
You can connect to Github using that public key
ssh -T [email protected]
Returns:
Hi githubUser! You've successfully authenticated, but GitHub does not provide shell access.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Punit Gupta |