Please note that students who join our free Coding Bootcamp Prep course after September 4th, 2018, will not have to worry about GitHub.com. We will teach you more about the platform and its usability as you join us in our paid programs.
If you need to add a new SSH key to your github account, you can follow these steps: https://help.github.com/articles/generating-an-ssh-key/
If you're using the IDE, we'll need to do things a little differently:
- In the IDE terminal, check for an existing ssh key using these steps: https://help.github.com/articles/checking-for-existing-ssh-keys/
- If you do not have one, follow these steps ("Terminal" refers to the IDE terminal): https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/ (Skip the section on adding your SSH key to your SSH Agent)
- Now type in
cat ~/.ssh/id_rsa.pub > ~/key.txt
. This will create a file in your tree calledkey.txt
where the contents of the file is your SSH key - Now copy everything in
key.txt
and add it to your github account per these instructions: https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/ Note: If you do not see akey.txt
file, follow Step 1 and runpbcopy < ~/.ssh/id_rsa.pub
to copy the key to your clipboard. Otherwise, you can skip Step 1 and simply copy the key from thekey.txt
file generated in the previous step
Once you've followed all these steps, you can test that the key was added correctly by doing ssh -T git@github.com
. You should get a message back that has your username in it and lets you know that GitHub does not support shell access.
Check out this video for a walkthrough on how to add your SSH key to GitHub from the Learn IDE (note, this video uses a different method for retrieving the SSH key than the once listed above. The one listed above is a better method than the one used in the video):