Skip to content

Commit d26217b

Browse files
authored
Merge pull request #10995 from github/repo-sync
repo sync
2 parents f943433 + e87aaef commit d26217b

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md

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

3333
```shell
34-
$ pbcopy < ~/.ssh/id_ed25519.pub
35-
# Copies the contents of the id_ed25519.pub file to your clipboard
34+
$ pbcopy < ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub
35+
# Copies the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file to your clipboard
3636
```
3737

3838
{% tip %}
@@ -67,8 +67,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
6767
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.
6868

6969
```shell
70-
$ clip < ~/.ssh/id_ed25519.pub
71-
# Copies the contents of the id_ed25519.pub file to your clipboard
70+
$ clip < ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub
71+
# Copies the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file to your clipboard
7272
```
7373

7474
{% tip %}
@@ -103,8 +103,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
103103
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.
104104

105105
```shell
106-
$ cat ~/.ssh/id_ed25519.pub
107-
# Then select and copy the contents of the id_ed25519.pub file
106+
$ cat ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub
107+
# Then select and copy the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file
108108
# displayed in the terminal to your clipboard
109109
```
110110

content/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,30 @@ topics:
1313
- SSH
1414
shortTitle: Check for existing SSH key
1515
---
16+
1617
{% data reusables.ssh.key-type-support %}
1718

1819
{% data reusables.command_line.open_the_multi_os_terminal %}
19-
2. Enter `ls -al ~/.ssh` to see if existing SSH keys are present:
20+
2. Enter `ls -al ~/.ssh` to see if existing SSH keys are present.
2021

2122
```shell
2223
$ ls -al ~/.ssh
2324
# Lists the files in your .ssh directory, if they exist
2425
```
25-
3. Check the directory listing to see if you already have a public SSH key. By default, the filenames of the public keys are one of the following:
26+
27+
3. Check the directory listing to see if you already have a public SSH key. By default, the {% ifversion ghae %}filename of a supported public key for {% data variables.product.product_name %} is *id_rsa.pub*.{% elsif fpt or ghes %}filenames of supported public keys for {% data variables.product.product_name %} are one of the following.
2628
- *id_rsa.pub*
2729
- *id_ecdsa.pub*
28-
- *id_ed25519.pub*
30+
- *id_ed25519.pub*{% endif %}
2931

30-
If you don't have an existing public and private key pair, or don't wish to use any that are available to connect to {% data variables.product.product_name %}, then [generate a new SSH key](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
32+
{% tip %}
3133

32-
If you see an existing public and private key pair listed (for example *id_rsa.pub* and *id_rsa*) that you would like to use to connect to {% data variables.product.product_name %}, you can [add your SSH key to the ssh-agent](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent).
34+
**Tip**: If you receive an error that *~/.ssh* doesn't exist, you do not have an existing SSH key pair in the default location. You can create a new SSH key pair in the next step.
3335

34-
{% tip %}
36+
{% endtip %}
3537

36-
**Tip:** If you receive an error that *~/.ssh* doesn't exist, don't worry! We'll create it when we [generate a new SSH key](/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent).
38+
4. Either generate a new SSH key or upload an existing key.
39+
- If you don't have a supported public and private key pair, or don't wish to use any that are available, generate a new SSH key.
40+
- If you see an existing public and private key pair listed (for example, *id_rsa.pub* and *id_rsa*) that you would like to use to connect to {% data variables.product.product_name %}, you can add the key to the ssh-agent.
3741

38-
{% endtip %}
42+
For more information about generation of a new SSH key or addition of an existing key to the ssh-agent, see "[Generating a new SSH key and adding it to the ssh-agent](/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent)."

content/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ With SSH keys, if someone gains access to your computer, they also gain access t
2222
You can change the passphrase for an existing private key without regenerating the keypair by typing the following command:
2323

2424
```shell
25-
$ ssh-keygen -p -f ~/.ssh/id_ed25519
25+
$ ssh-keygen -p -f ~/.ssh/id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}
2626
> Enter old passphrase: <em>[Type old passphrase]</em>
2727
> Key has comment '<em>your_email@example.com</em>'
2828
> Enter new passphrase (empty for no passphrase): <em>[Type new passphrase]</em>

content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Alternatively, you can enable {% data variables.product.prodname_actions %} for
3737

3838
{% endif %}
3939

40-
{% ifversion fpt or ghes > 2.22 or ghae-next %}
40+
{% ifversion fpt or ghes > 2.22 or ghae %}
4141

4242
## Managing {% data variables.product.prodname_actions %} permissions for your organization
4343

0 commit comments

Comments
 (0)