🔥Limited Offer: Get 50% OFFon AI & Full Stack Courses🔥
Back to Git Notes
Topic #20

GitHub Add SSH


Change Platform:


Add SSH to GitHub

Now that you have generated your SSH key, you need to add your public key to your GitHub account.

Copy Your Public SSH Key

  • On Windows (Git Bash): clip < ~/.ssh/id_rsa.pub
  • On macOS: pbcopy < ~/.ssh/id_rsa.pub
  • On Linux: cat ~/.ssh/id_rsa.pub (then copy manually)

Important: Complete these steps before you attempt to push, pull, or clone with SSH. This page assumes you have already generated your SSH key and added it to your SSH agent. If not, go back to the SSH setup section in the Getting Started guide.


Add the Key to GitHub

  1. Go to GitHub, click your profile in the top right, and select Settings:

GitHub Profile Settings

  1. In the sidebar, select SSH and GPG keys and click the New SSH key button.

GitHub Profile Settings SSH

  1. Give your key a descriptive title, paste your public SSH key into the "Key" field, and click Add SSH Key.

GitHub Profile Settings SSH Add Key

You may be prompted to supply your GitHub password or use 2FA to confirm the addition.

You will see your new SSH key listed:

GitHub Profile Settings SSH Added Key

Next, you'll test your SSH connection and set your GitHub remote origin using SSH.

Want to go beyond the notes?

Join CodingNow 2.0's Git course — live mentorship, real projects, and 100% placement support.

Enroll Now — Free Demo Available

GitHub Add SSH – FAQs

Quick answers about learning GitHub Add SSH in Git.

This free note from CodingNow 2.0 explains GitHub Add SSH in Git — concept, syntax and worked code examples you can copy, run and revise before interviews.
Yes. Every Git topic on CodingNow 2.0, including GitHub Add SSH, is 100% free with no signup required.
With focused practice, most students grasp GitHub Add SSH in 1–3 days from these notes; pairing it with CodingNow 2.0's mentor-led course takes you to job-ready depth faster.
Use the code examples in this note, then ask doubts for free on the CodingNow 2.0 Community (/community) — expert instructors answer within 24 hours.
WhatsApp
Call NowEnroll Now