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,455,950
Community Members
 
Community Events
176
Community Groups

Host key verification failed on SFTP Pipeline

Edited

Hello,

I'm trying to deploy to an testing server. As my server can't be accessed from internet, I’m using a self.hosted runner to copy my files and deploy inside my network

As my server is on a local network, I use cat command to add my know_host information but i always get a Host Key Verification Fail.  I'ts like the sftp pipeline doesn't read from the same know_host file.

Any help will be appreciated.

YML File

yaml.png

Cat Log

cat.png

Error:

error.png

1 answer

@Ricardo hi. Thanks for your question.

Currently our team are working on supporting the default ssh_key for self hosted runner.

Please, for now use your custom created ssh key. See how to generate encoded ssh_key under the section:

Use multiple SSH keys in your pipeline

pass the output in base64 format into bitbucket repository variables with name i.e SSH_KEY and use it in your pipe:

script:
  - pipe: atlassian/sftp-deploy:0.5.8
    variables:
      USER: <your user>
      SERVER: <your host>
      REMOTE_PATH: '/var/www/build/'
      LOCAL_PATH: 'build'
      SSH_KEY: $SSH_KEY
      DEBUG: 'true'

Regards, Igor.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events