Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 906
Dwarakanath Thoppe Avatar asked Nov 16 '25 01:11

Dwarakanath Thoppe


1 Answers

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.

like image 127
Punit Gupta Avatar answered Nov 17 '25 22:11

Punit Gupta



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!