How to add Ubuntu 16.04 SSH key to Github Account

Profile picture for user devraj

You need to add your SSH key to Github account to communicate with your project which is stored on Github. To know how to generate SSH key on your Ubuntu 16.04 machine, Use this link How to generate SSH private/public key pair on Ubuntu 16.04

To link your already generated SSH key to your github account follow below steps:

Step 1: Login to your git account and click on Settings, which is in dropdown of your profile image

Step 2: From "Personal Settings" section click on "SSH and GPG" keys

Step 3: Open your Ubuntu Terminal and type below command

$ cd ~/.ssh

Step 4: Copy key to your clipboard using any editor, use below command for gedit

$ gedit id_rsa.pub

Step 5: Navigate to your github account and Click on "New SSH Key" button for section "SSH Keys"

Step 6: Paste your copied ssh key and click on "Add SSH Key"

Tags