Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Trying to connect to cpanel host via ssh on pipelines not working.

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:

- 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/

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.

1 answer

The IP from pipelines was blocked on my host. You can whitelist all the pipelines's ips from here  bitbucket cloud pipelines.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

117 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you