Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure SFTP task

Nagarjuna July 26, 2023

SCP protocol has been disabled in Linux servers due to vulnerability and requested OS team to utilize SFTP service to copy from bamboo server to remote servers. So, while using the ftp download/upload plugin unable to transfer the files from server to client due to port 21 we are sure about it whether for data transfer support 21 insted of 22, however port 22 secure enable from server to client.

Could you please suggest us to accomplish the secure copy task using sftp protocol.

8 answers

1 vote
Nagarjuna July 31, 2023

Hi @Sergey Podobry _Stellarity Software_ Thank you so much, I added port number, it is working fine now.

1 vote
Sergey Podobry _Stellarity Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2023

FTP Task app supports SFTP protocol. Specify sftp://server/path in the URL field to enable SFTP. It will use port 22 by default.

0 votes
Nagarjuna July 31, 2023

Issue is resolved thank you!

0 votes
Sergey Podobry _Stellarity Software_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2023

@Anonymous Coward  They are different things and they both are supported by FTP Task.

0 votes
Anonymous Coward
Contributor
July 31, 2023

Simon says:

' The artifact handlers are primarily used by build plans to store build artifacts in some location. From the description of Nagarjuna the use case is deployment, not artifact production and storage. Some people like to keep things tidy and not use build plans to do deployments.

** please don't forget to understand the use case before answering. * *

`

 

Simon out.

0 votes
Anonymous Coward
Contributor
July 31, 2023

Simon says:

' SFTP and FTPS are very different things. The FTP task does not have support for SFTP, it has support for FTPS which is FTP over SSL/TLS.'

Simon out.

0 votes
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 30, 2023

Hello @Nagarjuna

Welcome to Atlassian Community!

Support for SFTP over an "SCP Task" is not yet implemented and is still gathering votes as a feature request:

We recommend you vote and follow that issued ticket to be notified of any changes towards its implementation.

You are also free to add a comment so the developers can understand your specific case and follow up accordingly.

As a workaround, you can use a Script Task, configure the operating system sftp command line, and transfer the files using a "-batchfile" option. You'll have to configure the Bamboo Agent to handle the authentication using SSH keys.

An example can be found here: https://unix.stackexchange.com/a/535294

Depending on your Build structure, it can also be necessary to add and run an Artifact Downloader Task to fetch the artifact and place it in the Build's working directory before calling the "Scripted SFTP" task, in case a different Plan generated the artifact or belongs to a different stage of the same Build.

Kind regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

0 votes
Shashank Kumar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 27, 2023

Hi Nagarjuna,

Welcome to Atlassian community

You can explore the option of SFTP Artifact handler which has been introduced in Bamboo 9.

Read more about it at https://confluence.atlassian.com/bamboo0901/configuring-the-sftp-artifact-handler-1188401760.html

Regards,

Shashank Kumar

**please don't forget to Accept the answer if your query was answered**

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events