Add an SSH key to your account
Beta. This guide was written from the product's documentation and hasn't been walked on the real website yet, so a step may not match what you see. It will show a “tested” date once it has been checked.
Guidebook opens github.com and shows you where to click, one step at a time.
To follow this guide on the real website, you need the Guidebook browser extension. It points at each thing to click and waits for you to do it.
It's free. After it's added, come back to this page and click Start.
Guidebook runs in Chrome on a computer. Send yourself this page and open it there.
You can also read the steps below.
The steps
What you'll do
An SSH key is a pair of files on your computer. You keep the private one secret and give GitHub the public one. This guide adds the public one to your account. You need to have made a key already, and to be signed in. Click Next to begin.
Start a new key
Click New SSH key, near the top on the right.
Give it a name
Click in this box and type a name that tells you which computer it's from, like My laptop.
Paste the public key
Open the file that ends in .pub on your computer, copy everything in it, and paste it into this box. Never paste the other file, the one without .pub. That one stays private.
Save it
Click Add SSH key. GitHub may ask for your password to confirm it's you.
All done
Your key is added. Your computer can now talk to GitHub without a password. Well done!
Use this guide another way
This is the guide itself. Paste it into Guidebook's Add a guide box, or keep it with your own guides.
---
id: github-add-ssh-key
title: Add an SSH key to your account
start: https://github.com/settings/keys
---
Let your computer talk to GitHub securely without typing a password each time.
## What you'll do {#welcome}
show: card
advance_on: manual
novice: An SSH key is a pair of files on your computer. You keep the private one secret and give GitHub the public one. This guide adds the public one to your account. You need to have made a key already, and to be signed in. Click **Next** to begin.
expert: Add a public SSH key to your account. Generate the key pair locally first (for example `ssh-keygen -t ed25519`).
## Start a new key {#new}
anchor: { role: link, name: "New SSH key" }
show: spotlight
advance_on: click
novice: Click **New SSH key**, near the top on the right.
expert: Click **New SSH key**.
## Give it a name {#title}
anchor: { role: textbox, name: "Title" }
show: spotlight
advance_on: input
novice: Click in this box and type a name that tells you which computer it's from, like **My laptop**.
expert: Enter a title that identifies the machine.
## Paste the public key {#key}
anchor: { role: textbox, name: "Key" }
show: spotlight
advance_on: input
novice: Open the file that ends in **.pub** on your computer, copy everything in it, and paste it into this box. Never paste the other file, the one without **.pub**. That one stays private.
expert: Paste the contents of the `.pub` file, never the private key.
## Save it {#add}
anchor: { role: button, name: "Add SSH key" }
show: spotlight
advance_on: click
novice: Click **Add SSH key**. GitHub may ask for your password to confirm it's you.
expert: Click **Add SSH key** and confirm with your password if asked.
## All done {#done}
show: card
novice: Your key is added. Your computer can now talk to GitHub without a password. Well done!
expert: Key added. Test it with `ssh -T git@github.com`.