To find SSH key is bind to which account?

7 views
Skip to first unread message

Ashwini

unread,
Aug 29, 2016, 2:55:57 AM8/29/16
to GitLab
Hi,

Could some one share any way to find out which account is using the same SSH-key in GitLab

Regards
Ashwini

Edward Ned Harvey (gitlabgooglegroup)

unread,
Aug 30, 2016, 8:52:27 AM8/30/16
to gitl...@googlegroups.com

Login to the gitlab server, and look in ~git/.ssh/authorized_keys

 

As long as the user didn't strip the comment at the end of the key, when they pasted into the 'Key' field of the web interface, you should be able to find it there.

 

Otherwise, you will have to use the string "key-1" or "key-2" etc in the authorized_keys file, and lookup the user via the key ID. http://docs.gitlab.com/ce/api/keys.html

 

 

 

--
You received this message because you are subscribed to the Google Groups "GitLab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/5e323cb4-5567-4905-bfce-0678e5e01de4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages