I'm gettings started with GitHub and I have no clue what I'm doing.
What is an SSH key? What should I be setting as my key? Do I make it up?
EDIT:
I'm on OSX
To answer your first question:
For this purpose, think of SSH as a method of secure communication, using cryptography.
For most cryptographic algorithms, it would be necessary for you and GitHub to agree on a key separately, which is in generally impractical. Therefore, SSH uses a class of cryptographic algorithms called "public key" or "asymmetric".
The idea is that you have two keys, such that what is encrypted by one is decrypted by the other, and it isn't computationally feasible to calculate one from the other. There really weren't that many algorithms that worked, last I looked, but they existed.
Therefore, you have to generate the keys, randomly, and you call one your public key and one your private. You send your public key to GitHub, or anybody else that wants it. (Much of this is all handled automatically, given the right software.) Then GitHub can send you information secretly by encrypting it with your public key, and only you can decrypt it. GitHub will, similarly, send you a public key so you can send secret messages.
In practice, these ciphers are inefficient, so what you send back and forth is keys for efficient cryptographic algorithms.
If you have Linux (or msysGit or Cygwin...):
~/.sshid_rsa.pub
ssh-keygen -C "[email protected]" -t rsacat id_rsa.pub) and just copy and paste to GitHub.That is it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With