- Read Tutorial
- Watch Guide Video
Now that you have your GitHub account, you can connect GitHub with your local machine.
Establishing this connection is important as this will allow you to push files to GitHub right from your terminal. In order to do this, we have to configure GitHub properly. Essentially, we are letting GitHub know we are sending our files from a trusted computer.
To begin, go to the image box on the top right hand corner of the navbar. Click on that, and choose settings.
On the settings page, click on SSH and GPG keys.
Click on the green button called "Add a new SSH key" that is present on the right-hand top corner.
You will now see a form to create a title, and add a key, which is your RSA key.
RSA Key
If you've never accessed an RSA key before, don't worry as it's a relatively straightforward process, and Github gives a full explanation on how to do it.
Right click on the link called "generating SSH keys", and choose “open link in a new tab”.
This link should give you all the information you need to generate a key. If you have never generated an SSH key before choose the second option titled “Generating a new SSH key and adding it to the ssh-agent". If you are connecting with GitHub for the first time but have a key click on the “Checking for existing SSH keys” link. There is also a tutorial on “Adding a new SSH key to your GitHub account". Choose the one that suits your needs.
Follow the Guide
Each of these links have a step-by-step guide.
You will copy and paste the commands into your terminal.
Once you have your SSH key you will paste it in the key section of the form and then click the add SSH key button.
Assuming everything has been entered correctly, you will receive a confirmation message and your system will be ready to securely communicate with GitHub.