Bureaucrats, cc_docs_admin, cc_staff
2,879
edits
(Marked this version for translation) |
No edit summary |
||
Line 131: | Line 131: | ||
== Options for key generation == <!--T:35--> | == Options for key generation == <!--T:35--> | ||
When you generate a key the default settings are usually sufficient. However, here are a few options which may be of interest. We demonstrate these options here using <code>ssh-keygen</code> as described in [[Using SSH keys in Linux]], but the same options are available if you are using a graphical interface as described in [[Generating SSH keys in Windows]]. | |||
* You can specify a comment for the key, which may be helpful if you have multiple keys: | |||
* | |||
ssh-keygen -C 'computecanada systems' | ssh-keygen -C 'computecanada systems' | ||
* | * You can choose the name of the key file: | ||
ssh-keygen -F computecanada-key | ssh-keygen -F computecanada-key | ||
This produces a file "computecanada-key" containing the private part, and "computecanada-key.pub" for the public part. | |||
* | * There are sometimes reasons to choose a different key type (rather than the RSA default): | ||
ssh-keygen -t ed25519 | |||
* You can strengthen certain key types, such as RSA, by setting a longer key length: | |||
ssh-keygen -t rsa -b 4096 | ssh-keygen -t rsa -b 4096 | ||