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
This creates a new ssh key, using the provided email as a label.
26
34
```shell
27
-
> Generating public/private rsa key pair.
35
+
> Generating public/private ed25519 key pair.
28
36
```
29
37
3. When you're prompted to "Enter a file in which to save the key," press Enter. This accepts the default file location.
30
38
31
39
{% mac %}
32
40
33
41
```shell
34
-
> Enter a file in which to save the key (/Users/<em>you</em>/.ssh/id_rsa): <em>[Press enter]</em>
42
+
> Enter a file in which to save the key (/Users/<em>you</em>/.ssh/id_ed25519): <em>[Press enter]</em>
35
43
```
36
44
37
45
{% endmac %}
38
46
39
47
{% windows %}
40
48
41
49
```shell
42
-
> Enter a file in which to save the key (/c/Users/<em>you</em>/.ssh/id_rsa):<em>[Press enter]</em>
50
+
> Enter a file in which to save the key (/c/Users/<em>you</em>/.ssh/id_ed25519):<em>[Press enter]</em>
43
51
```
44
52
45
53
{% endwindows %}
46
54
47
55
{% linux %}
48
56
49
57
```shell
50
-
> Enter a file in which to save the key (/home/<em>you</em>/.ssh/id_rsa): <em>[Press enter]</em>
58
+
> Enter a file in which to save the key (/home/<em>you</em>/.ssh/id_ed25519): <em>[Press enter]</em>
51
59
```
52
60
53
61
{% endlinux %}
@@ -81,18 +89,18 @@ Before adding a new SSH key to the ssh-agent to manage your keys, you should hav
81
89
$ touch ~/.ssh/config
82
90
```
83
91
84
-
* Open your `~/.ssh/config` file, then modify the file, replacing ` ~/.ssh/id_rsa` if you are not using the default location and name for your `id_rsa` key.
92
+
* Open your `~/.ssh/config` file, then modify the file, replacing ` ~/.ssh/id_ed25519` if you are not using the default location and name for your `id_ed25519` key.
85
93
86
94
```
87
95
Host *
88
96
AddKeysToAgent yes
89
97
UseKeychain yes
90
-
IdentityFile ~/.ssh/id_rsa
98
+
IdentityFile ~/.ssh/id_ed25519
91
99
```
92
100
93
101
3. Add your SSH private key to the ssh-agent and store your passphrase in the keychain. {% data reusables.ssh.add-ssh-key-to-ssh-agent %}
0 commit comments