You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
31
31
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.
32
32
33
33
```shell
34
-
$ pbcopy <~/.ssh/id_ed25519.pub
35
-
# Copies the contents of the id_ed25519.pub file to your clipboard
# Copies the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file to your clipboard
36
36
```
37
37
38
38
{% tip %}
@@ -67,8 +67,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
67
67
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.
68
68
69
69
```shell
70
-
$ clip <~/.ssh/id_ed25519.pub
71
-
# Copies the contents of the id_ed25519.pub file to your clipboard
# Copies the contents of the id_{% ifversion ghae %}rsa{% else %}ed25519{% endif %}.pub file to your clipboard
72
72
```
73
73
74
74
{% tip %}
@@ -103,8 +103,8 @@ After adding a new SSH key to your {% data variables.product.product_name %} acc
103
103
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.
104
104
105
105
```shell
106
-
$ cat ~/.ssh/id_ed25519.pub
107
-
# Then select and copy the contents of the id_ed25519.pub file
Copy file name to clipboardExpand all lines: content/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys.md
+12-8Lines changed: 12 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -13,26 +13,30 @@ topics:
13
13
- SSH
14
14
shortTitle: Check for existing SSH key
15
15
---
16
+
16
17
{% data reusables.ssh.key-type-support %}
17
18
18
19
{% 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.
20
21
21
22
```shell
22
23
$ ls -al ~/.ssh
23
24
# Lists the files in your .ssh directory, if they exist
24
25
```
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.
26
28
-*id_rsa.pub*
27
29
-*id_ecdsa.pub*
28
-
-*id_ed25519.pub*
30
+
-*id_ed25519.pub*{% endif %}
29
31
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 %}
31
33
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.
33
35
34
-
{% tip %}
36
+
{% endtip %}
35
37
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.
37
41
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)."
Copy file name to clipboardExpand all lines: content/organizations/managing-organization-settings/disabling-or-limiting-github-actions-for-your-organization.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ Alternatively, you can enable {% data variables.product.prodname_actions %} for
37
37
38
38
{% endif %}
39
39
40
-
{% ifversion fpt or ghes > 2.22 or ghae-next %}
40
+
{% ifversion fpt or ghes > 2.22 or ghae %}
41
41
42
42
## Managing {% data variables.product.prodname_actions %} permissions for your organization
0 commit comments