Hello Comunity, I am trying to deploy to on-premise via Runner using the sftp-deploy. In the figure 1 you can find the deployment yaml. The figure 2 shows the deployment logs. It seems to be running ok beacuse it donwloads the "sftp-deploy:0.5.7" image, stablish the connection with the remote host but it its not enable to stablish the sftp connection beacuse of the host key verification.
At this point, I am not pretty sure how to pass to the image the known_hosts. I tried to use the SSH_KEY configuration, but it seems that it does not fecht the Fingerprints via runners.
Does any of you have an idea to work this out?
Figure 2 - Deployment logs
Hi, @Renato Baudouin!
Thank you for reaching out to Atlassian Community!
In order to further investigate this issue, could you please confirm:
What is the Runner version you are using? You can find it in the Runner log on the top.
Have you fetched the host fingerprints in the Pipeline?
Thank you for your response.
Here are my comments:
What is the Runner version you are using? It is Runner version: 1.174, Runner runtime: linux-docker
Have you fetched the host fingerprints in the Pipeline? I am not sure how to do it. I tried to user the SSH_KEY in the repository settings, but it seems that it does not fecht the Fingerprints via runners.
Thanks for the information. It seems your Runner is not updated, so first of all, you need to upgrade the Runner version that has some bug fixes and some enhancements.
You can check in the following link how to update the runner:
Also, by your last comment, I couldn’t understand if you have fetched the host fingerprints in the Pipelines setting. So, in case you haven’t, please follow the next steps to accomplish that:
Open your repository in Bitbucket
Click on Repository settings
Under the Pipelines section, open SSH keys
There, you can add the known hosts and fetch the fingerprints
Please, feel free to share any additional questions or concerns regarding this case.
Thank you very much for your response. Yes, I tried to configure the known hosts the in the SSH key. But it is no able to fetch it, because my Remote Host is onPremise. Please check the Figure 3. So here is my questions:
Figure 3 - Diagram
Thank you for the additional information! In this case, you can add it in the Pipeline YML:
ssh-keyscan -p 20 -t rsa <Host URL> >> /.ssh/known_hosts
It should add the fingerprint. Please let me know how it goes and don't hesitate to ask for any further information if needed.
Thanks for sharing the logs. I see that there is a code 6 there, which means "File does not exist". You have specified LOCAL_PATH, however, I don’t see any steps about the file generation.
In this case, could you please verify the file mentioned in the LOCAL_PATH variable? You can run the following command before the pipe to confirm if the directory exists and if there is something in it:
Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their Jira Cloud instance. ...
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