In order to generate private and public ssh keys we run this command
- When we run
ssh-keygenwe 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
Things to note:
id_rsacontains private key
id_rsa.pubcontains public key
known hostsshows that services that uses are
ssh-keygen -t rsa -C "email@example.com" Generating ssh-keys and associating them with our email.