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: README.md
+56Lines changed: 56 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1162,6 +1162,62 @@ It means that the key of the remote host was changed and doesn't match the one t
1162
1162
1163
1163
<details>
1164
1164
<summary>What <code>ssh-keygen</code> is used for?</summary><br><b>
1165
+
1166
+
<code>ssh-keygen</code> is a tool to generate an authentication key pair for SSH, that consists of a private and a public key. It supports a number of algorithms to generate authentication keys :
1167
+
- dsa
1168
+
- ecdsa
1169
+
- ecdsa-sk
1170
+
- ed25519
1171
+
- ed25519-sk
1172
+
- rsa (default)
1173
+
1174
+
One can also specify number of bits in key. Command below generates an SSH key pair with RSA 4096-bits :
1175
+
```
1176
+
$ ssh-keygen -t rsa -b 4096
1177
+
```
1178
+
1179
+
The output looks like this:
1180
+
```
1181
+
Generating public/private rsa key pair.
1182
+
Enter file in which to save the key (/home/user/.ssh/id_rsa):
1183
+
Enter passphrase (empty for no passphrase):
1184
+
Enter same passphrase again:
1185
+
Your identification has been saved in /home/user/.ssh/id_rsa
1186
+
Your public key has been saved in /home/user/.ssh/id_rsa.pub
0 commit comments