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.
Hi @Sergey Podobry _Stellarity Software_ Thank you so much, I added port number, it is working fine now.
FTP Task app supports SFTP protocol. Specify sftp://server/path in the URL field to enable SFTP. It will use port 22 by default.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Anonymous Coward They are different things and they both are supported by FTP Task.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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--
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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**
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.