Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pipelines:
- default:
- - step:
- script:
- - echo $CodeCommitKey > ~/.ssh/codecommit_rsa.tmp
- - base64 -d ~/.ssh/codecommit_rsa.tmp > ~/.ssh/codecommit_rsa
- - chmod 400 ~/.ssh/codecommit_rsa
- - echo $CodeCommitConfig > ~/.ssh/config.tmp
- - base64 -d ~/.ssh/config.tmp > ~/.ssh/config
- - set +e
- - ssh -o StrictHostKeyChecking=no $CodeCommitHost
- - set -e
- - git remote add codecommit ssh://$CodeCommitRepo
- - git push codecommit $BITBUCKET_BRANCH
- Host git-codecommit.ap-southeast-2.amazonaws.com
- HostName git-codecommit.ap-southeast-2.amazonaws.com
- User APKAxxxx
- IdentityFile ~/.ssh/codecommit_rsa
- $CodeCommitHost = git-codecommit.ap-southeast-2.amazonaws.com
- $CodeCommitRepo = git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/myrepo
- $CodeCommitUser = APKAxxxx
- $CodeCommitKey = [The base64 encoded version of the SSH private key]
- + git push codecommit $BITBUCKET_BRANCH
- ssh_askpass: exec(/usr/bin/ssh-askpass): 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.
- + ssh -o StrictHostKeyChecking=no $CodeCommitHost
- Pseudo-terminal will not be allocated because stdin is not a terminal.
- Warning: Permanently added the RSA host key for IP address '103.8.175.33' to the list of known hosts.
- ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
- Permission denied (publickey).
Add Comment
Please, Sign In to add comment