tags:

views:

37

answers:

1

I am exactly halfway down this page: http://help.github.com/msysgit-key-setup/

I've just generated my first ever RSA keypair and I now want to add that key to my Github account.

Thing is, I don't see how to access the public key that I'm supposed to enter into Github's 'key' field. Entering cd id_rsa.pub and id_rsa.pub into Git Bash doesn't work.

Thanks!

+1  A: 

cat ~/.ssh/.id_rsa.pub or cat ~/.ssh/.id_dsa.pub

webdestroya
Even though I see the file in the place it's referring to (C:/Users/Me/.ssh/.id_rsa.pub), these commands are producing an error: No such file or directory. I'm doing this from Git Bash, MyPC ~/.ssh
sscirrus
@sscirrus: In windows, you can use `type` command. Or just open the .pub file in notepad and paste it to github.
Peter Štibraný
Thanks a lot Peter, for the answer and the edit. Make it an answer and I'll accept :)
sscirrus
@sscirrus: accept this one ... it works as well (under unix or cygwin)
Peter Štibraný