You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
In pipeline i got this error -
(umask 077 ; echo $PREPROD_SSH_KEY | base64 --decode > ~/.ssh/id_rsa)
base64: invalid input
variable $PREPROD_SSH_KEY
contains RSA PRIVATE KEY in format
-----BEGIN RSA PRIVATE KEY-----
key body
-----END RSA PRIVATE KEY-----
In that way i dont have access to private key , but i need it either.
problem solved, i created new key with these options :
ssh-keygen -t rsa -b 4096 -N -f bitbucket_key2021
call from bitbucket-pipelines.yml
- (umask 077 ; echo $STAGE_SSH_KEY | base64 --decode > ~/.ssh/id_rsa)
- chmod 400 ~/.ssh/id_rsa
- export SSHPASS=$(~/.ssh/id_rsa)
- sshpass -e ssh -o stricthostkeychecking=no $USER@$REMOTE_IP "echo Ok"
What are you trying to do? Create a key to be used with Pipelines?
Did you do this in the UI?
(I'm not great with Pipelines but been using it all day, figured I'd ask...)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have created keys in different ways -
ssh-keygen -t rsa -b 4096 -m pem -C your_email@example.com
or convert my previous key
openssl pkcs8 -topk8 -v2 des3 -in ./my_key -out ./encrypted_my_key
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.