Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to generate a new SSH key pair using the default RSA algorithm.
Linux CLI
ssh-keygen [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' which is for changing passphrase.
Using '-f' which specifies file name.
Using '-l' which lists fingerprints.
✗ Incorrect
The '-t rsa' option tells ssh-keygen to generate an RSA key pair, which is the default and most common type.
2fill in blank
mediumComplete the code to specify the file name for the SSH key pair.
Linux CLI
ssh-keygen -t rsa [1] ~/.ssh/my_custom_key Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' which is for passphrase.
Using '-l' which lists fingerprints.
Using '-C' which adds a comment.
✗ Incorrect
The '-f' option lets you specify the file name for the key pair.
3fill in blank
hardFix the error in the command to add a comment to the SSH key.
Linux CLI
ssh-keygen -t rsa -C [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the comment with special characters.
Using the option '-C' again as a value.
Using a comment without '@' when an email is expected.
✗ Incorrect
The comment should be a string, so it needs quotes if it contains special characters like '@'.
4fill in blank
hardFill both blanks to generate an Ed25519 SSH key with a custom file name.
Linux CLI
ssh-keygen [1] [2] ~/.ssh/id_ed25519_custom
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' which is for passphrase.
Using '-C' which is for comment.
Mixing up the order of options.
✗ Incorrect
Use '-t ed25519' to specify the Ed25519 key type and '-f' to specify the file name.
5fill in blank
hardFill all three blanks to generate an RSA SSH key with a comment and a custom file name.
Linux CLI
ssh-keygen [1] [2] ~/.ssh/id_rsa_custom [3] "user@example.com"
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-p' instead of '-C' for comment.
Not quoting the comment.
Omitting the file name option.
✗ Incorrect
Use '-t rsa' for RSA key type, '-f' for file name, and '-C' to add a comment.