Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to send somebody my (already generated) github public rsa key(send the key or the .pub file?)

I just set up Github and generated my ssh keys. I need to give my public rsa to somebody so they can allow me access to their git repo. Do I send them

a) my entire .pub file,

b) the contents of the .pub file, or

c) the key that i see if i log in to Github and go to ssh keys(looks like: id_rsa (22:ac:74:6b:a7:d9:14:a5:32:8f:08:c5:51:1b:49:lk)

like image 517
moe Avatar asked Apr 26 '13 03:04

moe


2 Answers

Send the contents of id_rsa.pub or the file id_rsa.pub itself. Either way. (Also: Remember never to send your private key.)

like image 193
btanaka Avatar answered Oct 13 '22 04:10

btanaka


If they know your username, they can get your public key already. See What is the public URL for the Github public keys.

This could also be handled by them adding you as a collaborator via the repo settings at https://github.com/username/repo/settings/collaboration

like image 43
Everett Toews Avatar answered Oct 13 '22 05:10

Everett Toews