Skip to content

Commit

Permalink
Update adding-a-new-ssh-key-to-your-github-account.md (github#1683)
Browse files Browse the repository at this point in the history
Specifying that the SSH key to copy is the public one.

Co-authored-by: hubwriter <hubwriter@github.com>
  • Loading branch information
ealmonte32 and hubwriter authored Dec 2, 2020
1 parent ae945be commit 1756da8
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc

{% mac %}

1. Copy the SSH key to your clipboard.
1. Copy the SSH public key to your clipboard.

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.
If your SSH public 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.

```shell
$ pbcopy &lt; ~/.ssh/id_ed25519.pub
Expand Down Expand Up @@ -49,9 +49,9 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc

{% windows %}

1. Copy the SSH key to your clipboard.
1. Copy the SSH public key to your clipboard.

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.
If your SSH public 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.

```shell
$ clip &lt; ~/.ssh/id_ed25519.pub
Expand Down Expand Up @@ -80,9 +80,9 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc

{% linux %}

1. Copy the SSH key to your clipboard.
1. Copy the SSH public key to your clipboard.

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.
If your SSH public 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.

```shell
$ sudo apt-get install xclip
Expand Down

0 comments on commit 1756da8

Please sign in to comment.