Created
February 3, 2021 08:37
-
-
Save arjunkori/5011d74a447000eed92c4ab270adc8a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/andrewpuch/code-commit-setup