Recall & Review
beginner
What is the purpose of the
ssh-keygen command?The
ssh-keygen command creates a pair of keys (a public key and a private key) used to securely connect to remote computers without using passwords.Click to reveal answer
beginner
What files are created by default when you run
ssh-keygen without options?By default,
ssh-keygen creates two files in your ~/.ssh/ folder: id_rsa (private key) and id_rsa.pub (public key).Click to reveal answer
beginner
Why should you keep your private key safe and never share it?
The private key is like a secret password. If someone else gets it, they can access your remote computers as if they were you. Only share the public key.
Click to reveal answer
beginner
How do you add a passphrase to your SSH key during generation?
When running
ssh-keygen, it asks for a passphrase. You can type a secret phrase to add extra protection to your private key.Click to reveal answer
intermediate
What is the command to generate an SSH key with RSA algorithm and 4096 bits key size?
Use
ssh-keygen -t rsa -b 4096 to create a strong RSA key with 4096 bits length.Click to reveal answer
What does the
ssh-keygen command generate?✗ Incorrect
ssh-keygen creates a pair of keys used for secure SSH authentication.Where are SSH keys stored by default after running
ssh-keygen?✗ Incorrect
SSH keys are saved in the
~/.ssh/ directory in your home folder.Which file contains the public key after generating SSH keys?
✗ Incorrect
The public key is saved in the file ending with
.pub, usually id_rsa.pub.What is the benefit of adding a passphrase to your SSH key?
✗ Incorrect
A passphrase encrypts your private key, so even if stolen, it cannot be used without the passphrase.
How do you specify the key type and size when generating an SSH key?
✗ Incorrect
The correct syntax is
ssh-keygen -t rsa -b 4096 to specify RSA type and 4096 bits.Explain the process and purpose of generating SSH keys using
ssh-keygen.Think about how you can log in to a remote computer safely without typing a password every time.
You got /4 concepts.
Describe how to generate a strong SSH key with a passphrase and where the keys are stored.
Remember the command syntax and the default folder for SSH keys.
You got /4 concepts.