ftp-deployのテンプレートを使用してFTPS接続する方法

吉野勇真 June 27, 2022

WEBサイトの更新を自動化するパイプラインを使用します。

使用しているサーバーがFTPS接続(SFTP / SSH接続不可)のみとなっておりテンプレートのftp-deployhttps://bitbucket.org/atlassian/ftp-deploy/src/master/ 

を使用してpipe.shのlftpを変更しても下記のエラーがでてうまく接続できません。

mirror: Login failed: 530 Non-anonymous sessions must use encryption.

私はLFTPに詳しくありませんが、

set ftp:ssl-auth TLS
set ftp:ssl-force true
set ftp:ssl-allow yes
set ftp:ssl-protect-list yes
set ftp:ssl-protect-data yes
set ftp:ssl-protect-fxp yes
set ssl:verify-certificate no

上記を設定することでFTPS接続ができるようになると思いますが、

pipe.shのlftpをどのように設定すれば実現できるのかわかりません。

BitbucketPipelinesでFTPS接続をしたことのある方、お力添えいただけますと幸いです。

1 answer

0 votes
Syahrul
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2022

Hey @吉野勇真 

Welcome to the community!

I believe you need to configure the option on your FTP server and not in the pipe since the error indicates that the Bitbucket pipeline connection was rejected by your server because it requires encryption.

You need to add those commands in your server ~/.lftprc

Hope this helps.

Cheers,
Syahrul

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events