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.
I been trying to connect to my cPanel host (liquid web) with an ssh key that i generated and with the ssh key that bitbucket generated. in both instances is not working.
Right now my script is:
script:
- apt-get update && apt-get install -y unzip
- apt-get install -y ssh
- ssh-keyscan -t rsa <host> my_known_hosts
- mkdir -p ~/.ssh
- cat my_known_hosts >> ~/.ssh/known_hosts
- (umask 077 ; echo $SSH_KEY | base64 --decode > ~/.ssh/bitbucket)
- cat ~/.ssh/bitbucket
- ssh -i ~/.ssh/bitbucket <user>@<host> 'bash -s' < shell-scripts/update.sh
The pipeline give me:
Host key verification failed.
But if i connect from my pc with the same key it let me in without error.
I thought it was because the host asked for a password but it didn't prompt one from my pc. (The key doesn't have one).
Exactly the same happened with the SSH key from bitbucket, i generated it, put it in my authorized keys on host, fails in pipeline but not from my pc.
The IP from pipelines was blocked on my host. You can whitelist all the pipelines's ips from here bitbucket cloud pipelines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.