Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,701
Community Members
 
Community Events
185
Community Groups

Bitbucket CI/CD vs Remote Server

Edited

Hey Community !!

Im new in Bitbucket Pipelines, now want to setup a simple pipeline to deploy my code to the remote server. What I did:

 

  1. I dont have root permission on my remote server, and connecting with username@host
  2. Generated ssh-keys, added the .pub one to the repo "Access Keys"
  3. Generated ssh-key pairs in repository settings, and added the public one to my authorized keys 

There are 2 issues Im facing right now:

  1. When trying to fetch the fingerprint of the remote host, getting "Unable to fetch fingerprints, check host SSH connection and try again". Here Im passing the IP address 
  2. And my pipeline just does not work, this is probably because of 1)

And this is my .ym file:

pipelines:
default:
- step:
name: Deploy to production
deployment: production
script:
- echo "Deploying to staging environment"
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: 'myuser'
SERVER: 'xx.yy.zz.qq'
COMMAND: touch /home/myuser/file.txt
Just trying to create a file in my home directory

Can you please help me to figure out what Im doing wrong here, and how can I fix the issue. I could not find any useful info to fix the issue

 

Thanks, 

Arthur

1 answer

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 09, 2022

Hello @Arthur Harutyunyan ,

Thank you for reaching out to Atlassian Community.

The fetch fingerprint usually fails when bitbucket is being blocked to access your server because of a firewall.

In this case, could you please make sure that : 

You can also execute the below commands both locally and in the pipelines to check if there's any connection issue between the pipelines infrastructure and your ssh host :

nmap -v -Pn <IP ADDRESS of the host> -p 22
ssh-keyscan -t rsa <IP ADDRESS of the host>

 Hope that helps! Let me know in case you have any questions or run into any issues.

Thank you, @Arthur Harutyunyan .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events