Getting below error while pushing source code to aws codecommit using bitbucket.yml file.
+ git push codecommit $BITBUCKET_BRANCH
no such identity: /root/.ssh/codecommit_rsa: No such file or directory
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Hi @Abhishek Tiwari,
To use ssh keys you'll need to setup both the sender (pipelines) and the receiver (aws codecommit)
To set up ssh keys for use in pipelines you can consult our documentation here https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html
To set up ssh keys for use in aws codecommit you can consult the documentation here https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-ssh-unixes.html
If you have any other questions let me know.
Cheers,
Tom
Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.