CodeCommit with SSH— No CLI

Siddharth Malani
1 min readMar 31, 2020

--

For those who have not used certificate based auth before it can be confusing so I am writing this short blog to explain the pre-requisites before you get to the AWS instructions on how to connect to your EC2s with your certificates.

1. First generate your own key pair — i.e. your identity

Install ssh-keygen. Comes free with git-bash.

ssh-keygen -t rsa -C “your_email@example.com

1. This will store the id_rsa file or the one you choose in ~/.ssh folder.

2. It will generate 2 parts such as id_rsa and id_rsa.pub.

3. id_rsa is private key and id_rsa.pub is public certificate.

4. You need to use the contents of id_rsa.pub part while following the steps in the link below.

5. Make sure you secure your id_rsa file.

chmod 400 ~/.ssh/id_rsa

2. Next follow instructions so AWS recognizes you with the identity you just created. Follow steps in the link below.

https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-without-cli.html

--

--

No responses yet