Skip to content

Commit a3f4c68

Browse files
author
Ryan Lail
authored
Merge pull request #1 from BaileyJM02/patch-2
Update command to copy key named ed25519 from rsa
2 parents 3f3d9a9 + a3cbd65 commit a3f4c68

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

content/github/authenticating-to-github/adding-a-new-ssh-key-to-your-github-account.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
2424
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.
2525

2626
```shell
27-
$ pbcopy < ~/.ssh/id_rsa.pub
28-
# Copies the contents of the id_rsa.pub file to your clipboard
27+
$ pbcopy < ~/.ssh/id_ed25519.pub
28+
# Copies the contents of the id_ed25519.pub file to your clipboard
2929
```
3030

3131
{% tip %}
@@ -54,8 +54,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
5454
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.
5555

5656
```shell
57-
$ clip < ~/.ssh/id_rsa.pub
58-
# Copies the contents of the id_rsa.pub file to your clipboard
57+
$ clip < ~/.ssh/id_ed25519.pub
58+
# Copies the contents of the id_ed25519.pub file to your clipboard
5959
```
6060

6161
{% tip %}
@@ -88,8 +88,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
8888
$ sudo apt-get install xclip
8989
# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)
9090

91-
$ xclip -selection clipboard < ~/.ssh/id_rsa.pub
92-
# Copies the contents of the id_rsa.pub file to your clipboard
91+
$ xclip -selection clipboard < ~/.ssh/id_ed25519.pub
92+
# Copies the contents of the id_ed25519.pub file to your clipboard
9393
```
9494
{% tip %}
9595

0 commit comments

Comments
 (0)