Although you can access CodeCommit from the AWS Console, the most efficient way to access it, is via SSH. Assuming you already have an IAM user, as well as Git installed on your local machine, it’s time to setup a SSH connection to CodeCommit by performing the following commands.
- Generate a RSA key pair
- Copy the public key to the clipboard.
- Upload the SSH public key to the AWS IAM Console.
- You’ll receive a SSH Key ID.
- Create a config file
- chmod 600 config
- Test connection
- Clone repo
To get more details regarding SSH access to CodeCommit, visit the AWS docs.