FTP Explicit TLS problem with proftpd

Hello :wink:
I tried to use ftp with explicit tls on a Pure-FTPD server, but impossible to list remote directory or to upload/download files.

Can you help me please ?

What is the problem you are having with rclone?

When I use FTP with explicit TLS, nothing happen

What is your rclone version (output from rclone version)

rclone v1.52.2-276-gc2f3949d-beta

  • os/arch: linux/amd64
  • go version: go1.14.6

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 20.04 and Windows 10 too

Which cloud storage system are you using? (eg Google Drive)

FTP

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone copy  /var/tmp/id_rsa.pub testftps:/ -vv --dump bodies```



[testftps]
type = ftp
host = bucket-dd94300b-5159-4bbc-befc-512dd9c3731d-fsbucket.services.clever-cloud
user = udd94300b515
pass =
tls = false
explicit_tls = true
no-check-certificate = true




#### A log from the command with the `-vv` flag  
I put log on pastbin

2020/07/31 08:55:47 DEBUG : rclone: Version "v1.52.2-276-gc2f3949d-beta" starting with parameters ["rclone" "copy" "/var/tmp/id_rsa.pub" "testftps:/" "-vv" "--dump" "bodies"]
2020/07/31 08:55:47 DEBUG : Using config file from "/home/fralix/.config/rclone/rclone.conf"
2020/07/31 08:55:47 DEBUG : fs cache: adding new entry for parent of "/var/tmp/id_rsa.pub", "/var/tmp"
2020/07/31 08:55:47 DEBUG : bucket-dd94300b-5159-4bbc-befc-512dd9c3731d-fsbucket.services.clever-cloud: Connecting to FTP server
2020/07/31 08:55:47 DEBUG : FTP Rx: "220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------"
2020/07/31 08:55:47 DEBUG : FTP Rx: "220-You are user number 1 of 2048 allowed."
2020/07/31 08:55:47 DEBUG : FTP Rx: "220-Local time is now 06:55. Server port: 21."
2020/07/31 08:55:47 DEBUG : FTP Rx: "220-This is a private system - No anonymous login"
2020/07/31 08:55:47 DEBUG : FTP Rx: "220-IPv6 connections are also welcome on this server."
2020/07/31 08:55:47 DEBUG : FTP Rx: "220 You will be disconnected after 15 minutes of inactivity."
2020/07/31 08:55:47 DEBUG : FTP Tx: "AUTH TLS"
2020/07/31 08:55:47 DEBUG : FTP Rx: "234 AUTH TLS OK."
2020/07/31 08:55:47 DEBUG : FTP Tx: "FEAT"
2020/07/31 08:55:47 DEBUG : FTP Rx: "211-Extensions supported:"
2020/07/31 08:55:47 DEBUG : FTP Rx: " EPRT"
2020/07/31 08:55:47 DEBUG : FTP Rx: " IDLE"
2020/07/31 08:55:47 DEBUG : FTP Rx: " MDTM"
2020/07/31 08:55:47 DEBUG : FTP Rx: " SIZE"
2020/07/31 08:55:47 DEBUG : FTP Rx: " MFMT"
2020/07/31 08:55:47 DEBUG : FTP Rx: " REST STREAM"
2020/07/31 08:55:47 DEBUG : FTP Rx: " MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;"
2020/07/31 08:55:47 DEBUG : FTP Rx: " MLSD"
2020/07/31 08:55:47 DEBUG : FTP Rx: " AUTH TLS"
2020/07/31 08:55:47 DEBUG : FTP Rx: " PBSZ"
2020/07/31 08:55:47 DEBUG : FTP Rx: " PROT"
2020/07/31 08:55:47 DEBUG : FTP Rx: " TVFS"
2020/07/31 08:55:47 DEBUG : FTP Rx: " ESTA"
2020/07/31 08:55:47 DEBUG : FTP Rx: " PASV"
2020/07/31 08:55:47 DEBUG : FTP Rx: " EPSV"
2020/07/31 08:55:47 DEBUG : FTP Rx: " SPSV\r"
2020/07/31 08:55:47 DEBUG : FTP Rx: "211 End."
2020/07/31 08:55:47 DEBUG : FTP Tx: "USER udd94300b515"
2020/07/31 08:55:47 DEBUG : FTP Rx: "331 User udd94300b515 OK. Password required"
2020/07/31 08:55:47 DEBUG : FTP Tx: PASS *****
2020/07/31 08:55:47 DEBUG : FTP Rx: "230 OK. Current directory is /"
2020/07/31 08:55:47 DEBUG : FTP Tx: "TYPE I"
2020/07/31 08:55:47 DEBUG : FTP Rx: "200 TYPE is now 8-bit binary"
2020/07/31 08:55:47 DEBUG : FTP Tx: "PBSZ 0"
2020/07/31 08:55:47 DEBUG : FTP Rx: "200 PBSZ=0"
2020/07/31 08:55:47 DEBUG : FTP Tx: "PROT P"
2020/07/31 08:55:47 DEBUG : FTP Rx: "200 Data protection level set to "private""
2020/07/31 08:55:47 DEBUG : FTP Tx: "EPSV"
2020/07/31 08:55:47 DEBUG : FTP Rx: "229 Extended Passive mode OK (|||50352|)"
2020/07/31 08:55:47 DEBUG : FTP Tx: "MLSD /"
2020/07/31 08:55:47 DEBUG : FTP Rx: "150 Accepted data connection"
2020/07/31 08:55:47 DEBUG : id_rsa.pub: Need to transfer - File not found at Destination
2020/07/31 08:55:47 DEBUG : FTP Tx: "EPSV"
2020/07/31 08:55:47 DEBUG : FTP Tx: "PASV"
2020/07/31 08:55:47 DEBUG : FTP Tx: "QUIT"
2020/07/31 08:55:48 DEBUG : bucket-dd94300b-5159-4bbc-befc-512dd9c3731d-fsbucket.services.clever-cloud. Connecting to FTP server

It looks like it is working to me. I wonder if the leading / is confusing it - try without

Same problem :confused:

2020/07/31 14:00:31 DEBUG : FTP Rx: "211 End."
2020/07/31 14:00:31 DEBUG : FTP Tx: "USER udd94300b515"
2020/07/31 14:00:31 DEBUG : FTP Rx: "331 User udd94300b515 OK. Password required"
2020/07/31 14:00:31 DEBUG : FTP Tx: PASS *****
2020/07/31 14:00:31 DEBUG : FTP Rx: "230 OK. Current directory is /"
2020/07/31 14:00:31 DEBUG : FTP Tx: "TYPE I"
2020/07/31 14:00:31 DEBUG : FTP Rx: "200 TYPE is now 8-bit binary"
2020/07/31 14:00:31 DEBUG : FTP Tx: "PBSZ 0"
2020/07/31 14:00:31 DEBUG : FTP Rx: "200 PBSZ=0"
2020/07/31 14:00:31 DEBUG : FTP Tx: "PROT P"
2020/07/31 14:00:31 DEBUG : FTP Rx: "200 Data protection level set to \"private\""
2020/07/31 14:00:31 DEBUG : FTP Tx: "EPSV"
2020/07/31 14:00:31 DEBUG : FTP Rx: "229 Extended Passive mode OK (|||54599|)"
2020/07/31 14:00:31 DEBUG : FTP Tx: "MLSD ."
2020/07/31 14:00:31 DEBUG : FTP Rx: "150 Accepted data connection"
2020/07/31 14:00:31 DEBUG : id_rsa.pub: Failed to remove: object not found
2020/07/31 14:00:31 DEBUG : id_rsa.pub: Received error: update stor: EOF - low level retry 2/10
2020/07/31 14:00:31 DEBUG : FTP Tx: "EPSV"
2020/07/31 14:00:31 DEBUG : FTP Tx: "PASV"
2020/07/31 14:00:31 DEBUG : FTP Tx: "QUIT"

Is it possible a firewall is interfering with the connections?

I've had multiple issues with ProFTPd and FTPS that get fixed adding this option to my config:

TLSOptions NoSessionReuseRequired

I would recommend adding it and testing it. Not sure if it will work though.