Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

git
github
ssh

How to add SSH key to GitHub

Educative Answers Team

In this shot, we will cover how to configure your GitHub account to use your new (or existing) SSH key.

Note: DSA keys (SSH-DSS) are not supported by GitHub.

svg viewer

Steps

  1. Copy your SSH key to your clipboard.
    The key is usually found in the .ssh folder in the user’s home directory.

  2. Go to GitHub Settings.
    In the upper-right corner of any page, click your profile photo, then click Settings.

  3. Click SSH and GPG keys.
    In the user settings sidebar, click SSH and GPG keys.

  4. Click ‘New SSH key’ or ‘Add SSH key’.
    Clicking will open a form.

  5. Add a title.
    In the ‘Title’ field, add a descriptive label for the new key.

  6. Paste your key into the ‘Key’ field.

  7. Click ‘Add SSH key’.

  8. Enter your GitHub password.
    If prompted, confirm your GitHub password.

That’s it! You can now reconfigure any local repositories to use SSH.

RELATED TAGS

git
github
ssh
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring