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.
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
Cat Log
Error:
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.