Skip to content

Commit

Permalink
Merge pull request #40599 from github/repo-sync
Browse files Browse the repository at this point in the history
Repo sync
  • Loading branch information
docs-bot authored Aug 11, 2023
2 parents 9c285a0 + 54e971a commit 54f11c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ After adding a new SSH authentication key to your account on {% ifversion ghae %
{% webui %}

{% data reusables.gpg.copy-ssh-public-key %}

{% data reusables.user-settings.access_settings %}

{% data reusables.user-settings.ssh %}

1. Click **New SSH key** or **Add SSH key**.
1. In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal laptop, you might call this key "Personal laptop".
{% ifversion ssh-commit-verification %}
Expand Down
14 changes: 11 additions & 3 deletions data/reusables/gpg/copy-ssh-public-key.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,19 @@
# Copies the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file to your clipboard
```

{% tip %}
{% note %}

**Tip:** With Windows Subsystem for Linux (WSL), you can use `clip.exe`. Otherwise if `clip` isn't working, you can locate the hidden `.ssh` folder, open the file in your favorite text editor, and copy it to your clipboard.
**Notes:**

{% endtip %}
- With Windows Subsystem for Linux (WSL), you can use `clip.exe`. Otherwise if `clip` isn't working, you can locate the hidden `.ssh` folder, open the file in your favorite text editor, and copy it to your clipboard.
- On newer versions of Windows that use the Windows Terminal, or anywhere else that uses the PowerShell command line, you may receive a `ParseError` stating that `The '<' operator is reserved for future use.` In this case, the following alternative `clip` command should be used:

```shell
$ cat ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub | clip
# Copies the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file to your clipboard
```

{% endnote %}
{% endwindows %}
{% linux %}

Expand Down

0 comments on commit 54f11c8

Please sign in to comment.