Skip to content

Instantly share code, notes, and snippets.

@arjunkori
Created February 3, 2021 08:37
Show Gist options
  • Save arjunkori/5011d74a447000eed92c4ab270adc8a7 to your computer and use it in GitHub Desktop.
Save arjunkori/5011d74a447000eed92c4ab270adc8a7 to your computer and use it in GitHub Desktop.
On mac
cd $HOME/.ssh
ssh-keygen -> codecommit_rsa (filename)
create file named empty config on ssh directory
touch config
chmod 600 config
No copy the local ssh key
pbcopy < codecommit_rsa.pub
Go to AWS IAM role page paste/upload SSH keys and It will show SSH key ID copy that key id e.g
APKA3Z5BCJ6G4QS7DH5Q
Opne the file config and paste the below command
Host git-codecommit.*.amazonaws.com
User APKAEIBAERJR2EXAMPLE
IdentityFile ~/.ssh/codecommit_rsa
ssh is setuped successfulyy.
To test the connect use velow command
ssh git-codecommit.us-east-1.amazonaws.com
@arjunkori
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment