Overview :
Step 1 -Open Git bash : Run the below commands to create config file in ssh directory
📋 Command to enter/move into ssh directory | cd .ssh |
📋 Create config file | vi file |
Step 2 – Enter config file data : Follow step 3 of connections instruction and enter your data(replace with your information)
📋 User | Refer 2.6 > Step 3 – Copy SSH Key ID |
📋 IdentityFile(Private key name) | Refere 2.5 > Step 1 – Generating Token > Your Identification Saved in |
Once this panel opens, Press I (to wire data), and Press ESC next Enter wq! To save the data
Step 3 – Read file and Modify the permissions of file :
📋 To Read the file | cat config |
📋 To Modify the permissions of file | chmod 600 config |
Step 4 – Verify the connection :
📋 Run the command to verify | ssh -v git-codecommit.us-east-2.amazonaws.com |
.
.
.
.
At bottom of the response , we can see
You have successfully authenticated over SSH. You can use Git to interact with AWS CodeCommit.