Skip to content

Commit 7998e51

Browse files
committed
Explain -o option in ssh-keygen
Add brief explanation of ssh-keygen -o option.
1 parent cd5c748 commit 7998e51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/04-git-server/sections/generating-ssh-key.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ d0:82:24:8e:d7:f1:bb:9b:33:53:96:93:49:da:9b:e3 [email protected]
3636
----
3737

3838
First it confirms where you want to save the key (`.ssh/id_rsa`), and then it asks twice for a passphrase, which you can leave empty if you don't want to type a password when you use the key.
39-
However, if you do use a password, make sure to add the `-o` option.
39+
However, if you do use a password, make sure to add the `-o` option; it saves the private key in a format that is more resistant to brute-force password cracking than is the default format.
4040
You can also use the `ssh-agent` tool to prevent having to enter the password each time.
4141

4242
Now, each user that does this has to send their public key to you or whoever is administrating the Git server (assuming you're using an SSH server setup that requires public keys).

0 commit comments

Comments
 (0)