Skip to content

Setting up authenticating Github

MiriamShmuelevitz edited this page Sep 5, 2016 · 1 revision

SSH key

SSH keys are a way to identify trusted computers without involving passwords. You can generate an SSH key and add the public key to your GitHub account by following the procedures outlined in this section.

  1. Generating a new SSH key

       ssh-keygen -t rsa -b 4096 -C <"YourEmail@mail.com">
    
  2. Adding your SSH key to the ssh-agent

      eval "$(ssh-agent -s)"
      ssh-add ~/.ssh/id_rsa
    
    
       sudo apt-get install xclip
       xclip -sel clip < ~/.ssh/id_rsa.pub
       # Copies the contents of the id_rsa.pub file to your clipboard
    

Open your Github, In the top right corner of any page, click your profile photo, then click Settings. In the user settings sidebar, click SSH and GPG keys. Click New SSH key or Add SSH key. In the "Title" field, press your title. Paste your key into the "Key" field. Click Add SSH key. If prompted, confirm your GitHub password.