Adding A New SSH Key To Your GitHub Account - GitHub Docs
Adding A New SSH Key To Your GitHub Account - GitHub Docs
Before adding a new SSH key to your GitHub account, you should have:
After adding a new SSH key to your GitHub account, you can reconfigure any local repositories
to use SSH. For more information, see "Switching remote URLs from HTTPS to SSH."
Note: DSA keys (SSH-DSS) are no longer supported. Existing keys will continue to function, but you
cannot add new DSA keys to your GitHub account.
If your SSH key file has a different name than the example code, modify the filename to
match your current setup. When copying your key, don't add any newlines or whitespace.
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account 1/4
9/29/2020 Adding a new SSH key to your GitHub account - GitHub Docs
Tip: If xclip isn't working, you can locate the hidden .ssh folder, open the file in your favorite
text editor, and copy it to your clipboard.
2 In the upper-right corner of any page, click your profile photo, then click Settings.
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account 2/4
9/29/2020 Adding a new SSH key to your GitHub account - GitHub Docs
5 In the "Title" field, add a descriptive label for the new key. For example, if you're using a
personal Mac, you might call this key "Personal MacBook Air".
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account 3/4
9/29/2020 Adding a new SSH key to your GitHub account - GitHub Docs
Further reading
"Authorizing an SSH key for use with SAML single sign-on"
https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account 4/4