Question 173:
A new employee joined a company where AWS CodeCommit manages code repositories in several AWS regions. In order to connect with CodeCommit by SSH, he installed the latest version of GIT in a Linux machine, created a key pair via ssh-keygen and uploaded the public key to the security credentials of his IAM user. However, he still cannot git clone any repositories using SSH. Which config file in ~/.ssh/ does he need to create in his Linux machine?
Answer options:
A.Host * User IAMUSREIDEXAMPLE IdentityFile ~/.ssh/id_rsa B.Host git-codecommit.ap-south-1.amazonaws.com User APKAXXXXXXXXXEXAMPLE IdentityFile ~/.ssh/id_rsa C.Host git-codecommit.*.amazonaws.com User APKAXXXXXXXXXEXAMPLE IdentityFile ~/.ssh/id_rsa D.Host git-codecommit.*.amazonaws.com User IAMUSREIDEXAMPLE IdentityFile ~/.ssh/id_rsa.pub