Guest User

Untitled

a guest
Apr 14th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. pipelines:
  2. default:
  3. - step:
  4. script:
  5. - echo $CodeCommitKey > ~/.ssh/codecommit_rsa.tmp
  6. - base64 -d ~/.ssh/codecommit_rsa.tmp > ~/.ssh/codecommit_rsa
  7. - chmod 400 ~/.ssh/codecommit_rsa
  8. - echo $CodeCommitConfig > ~/.ssh/config.tmp
  9. - base64 -d ~/.ssh/config.tmp > ~/.ssh/config
  10. - set +e
  11. - ssh -o StrictHostKeyChecking=no $CodeCommitHost
  12. - set -e
  13. - git remote add codecommit ssh://$CodeCommitRepo
  14. - git push codecommit $BITBUCKET_BRANCH
  15.  
  16. Host git-codecommit.ap-southeast-2.amazonaws.com
  17. HostName git-codecommit.ap-southeast-2.amazonaws.com
  18. User APKAxxxx
  19. IdentityFile ~/.ssh/codecommit_rsa
  20.  
  21. $CodeCommitHost = git-codecommit.ap-southeast-2.amazonaws.com
  22. $CodeCommitRepo = git-codecommit.ap-southeast-2.amazonaws.com/v1/repos/myrepo
  23. $CodeCommitUser = APKAxxxx
  24. $CodeCommitKey = [The base64 encoded version of the SSH private key]
  25.  
  26. + git push codecommit $BITBUCKET_BRANCH
  27. ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
  28. Permission denied (publickey).
  29. fatal: Could not read from remote repository.
  30. Please make sure you have the correct access rights
  31. and the repository exists.
  32.  
  33. + ssh -o StrictHostKeyChecking=no $CodeCommitHost
  34. Pseudo-terminal will not be allocated because stdin is not a terminal.
  35. Warning: Permanently added the RSA host key for IP address '103.8.175.33' to the list of known hosts.
  36. ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
  37. Permission denied (publickey).
Add Comment
Please, Sign In to add comment