In order to generate private and public ssh keys we run this command ssh-key
- When we run
ssh-keygen
we get this prompt
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa):
- Now you can save the
ssh keys
in.ssh/
folder
Things to note:
id_rsa
contains private keyid_rsa.pub
contains public keyknown hosts
shows that services that uses aressh-keys
.
ssh-keygen -t rsa -C "your_email@example.com"
Generating ssh-keys and associating them with our email.