1
0
mirror of synced 2025-12-22 03:16:52 -05:00

Update adding-a-new-ssh-key-to-your-github-account.md (#1683)

Specifying that the SSH key to copy is the public one.

Co-authored-by: hubwriter <hubwriter@github.com>
This commit is contained in:
Emyll Almonte
2020-12-02 12:23:13 -05:00
committed by GitHub
parent ae945be534
commit 1756da83d1

View File

@@ -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
@@ -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
@@ -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