In order to generate private and public ssh keys we run this command ssh-key
- 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
ssh keysin.ssh/folder
Things to note:
id_rsacontains private keyid_rsa.pubcontains public keyknown hostsshows that services that uses aressh-keys.
ssh-keygen -t rsa -C "your_email@example.com" Generating ssh-keys and associating them with our email.
About the Author
Muhammad Raza is a Senior DevOps Engineer and former AWS Professional Services Consultant with 5 years of experience in cloud infrastructure, CI/CD automation, and DevOps solutions. He has helped numerous clients optimize AWS costs, implement Infrastructure as Code, and build reliable deployment pipelines.
Need help with your DevOps workflows? I'm available for consulting on CI/CD pipelines, infrastructure automation, and AWS architecture. Book a free 30-min call or email me.