FTPS problem connecting to FileZilla Server 1.0.0-rc4

Advertisement

Dini
Guest

FTPS problem connecting to FileZilla Server 1.0.0-rc4

WinSCP 5.19.2 (Windows 10 21H1 x64) throws an error:
Error while transfering data: TLS session of data connection not resumed.
when refreshing or changing a directory after being already connected.

FileZilla Client 3.55.0 works fine.
. 2021-07-28 20:52:05.987 Using FTP protocol.
. 2021-07-28 20:52:05.989 Doing startup conversation with host.
> 2021-07-28 20:52:06.002 PWD
< 2021-07-28 20:52:06.002 257 "/" is current directory.
. 2021-07-28 20:52:06.002 Changing directory to "/".
> 2021-07-28 20:52:06.002 CWD /
< 2021-07-28 20:52:06.002 250 CWD command successful
. 2021-07-28 20:52:06.002 Getting current directory name.
> 2021-07-28 20:52:06.002 PWD
< 2021-07-28 20:52:06.002 257 "/" is current directory.
. 2021-07-28 20:52:06.043 Retrieving directory listing...
> 2021-07-28 20:52:06.043 TYPE A
< 2021-07-28 20:52:06.043 200 Type set to A
> 2021-07-28 20:52:06.044 PASV
< 2021-07-28 20:52:06.045 227 Entering Passive Mode (192,168,1,1,214,2)
> 2021-07-28 20:52:06.045 MLSD
. 2021-07-28 20:52:06.045 Connecting to 192.168.1.1:54786 ...
. 2021-07-28 20:52:06.049 Using TLSv1.3, cipher TLSv1.3: TLS_AES_256_GCM_SHA384, 2048 bit RSA, TLS_AES_256_GCM_SHA384  TLSv1.3 Kx=any      Au=any  Enc=AESGCM(256) Mac=AEAD
< 2021-07-28 20:52:06.049 150 Data transfer started
. 2021-07-28 20:52:06.049 TLS connection established
. 2021-07-28 20:52:06.049 Session ID reused
. 2021-07-28 20:52:06.049 type=dir;modify=20210728185206.045;perms=cmpeldf; pub
. 2021-07-28 20:52:06.050 Data connection closed
< 2021-07-28 20:52:06.050 226 Operation successful
. 2021-07-28 20:52:06.050 Directory listing successful
. 2021-07-28 20:52:06.050 ..;D;0;1899-12-30T01:00:00.000Z;0;"" [0];"" [0];---------;0
. 2021-07-28 20:52:06.050 pub;D;0;2021-07-28T18:52:06.000Z;3;"" [0];"" [0];---------;0
. 2021-07-28 20:52:06.065 Startup conversation with host finished.
. 2021-07-28 20:52:07.689 Getting current directory name.
. 2021-07-28 20:52:07.690 Retrieving directory listing...
> 2021-07-28 20:52:07.690 TYPE A
< 2021-07-28 20:52:07.690 200 Type set to A
> 2021-07-28 20:52:07.690 PASV
< 2021-07-28 20:52:07.690 227 Entering Passive Mode (192,168,1,1,204,136)
> 2021-07-28 20:52:07.690 MLSD
. 2021-07-28 20:52:07.690 Connecting to 192.168.1.1:52360 ...
. 2021-07-28 20:52:07.698 Using TLSv1.3, cipher TLSv1.3: TLS_AES_256_GCM_SHA384, 2048 bit RSA, TLS_AES_256_GCM_SHA384  TLSv1.3 Kx=any      Au=any  Enc=AESGCM(256) Mac=AEAD
< 2021-07-28 20:52:07.698 150 Data transfer started
. 2021-07-28 20:52:07.698 TLS connection established
. 2021-07-28 20:52:07.698 Data connection closed
. 2021-07-28 20:52:07.698 <Empty directory listing>
< 2021-07-28 20:52:07.699 425 Error while transfering data: TLS session of data connection not resumed.
. 2021-07-28 20:52:07.699 Could not retrieve directory listing
* 2021-07-28 20:52:07.705 (ECommand) Error listing directory '/'.
* 2021-07-28 20:52:07.705 Could not retrieve directory listing
* 2021-07-28 20:52:07.705 Error while transfering data: TLS session of data connection not resumed. 

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: FTPS problem connecting to FileZilla Server 1.0.0-rc4

I was not able to identify any problem on WinSCP side. And WinSCP can resume the TLS session again all other FTPS servers. Consider reporting this also to the FileZilla team.

Reply with quote

Dini
Guest

WinSCP does work with FileZilla Server 0.9.60.2 if WinSCP's TLS setting is limited to 1.2. Same thing with vsftpd 3.0.3. Sadly, it fails with TLS 1.2 or TLS 1.3 when connecting to FileZilla Server 1.0.0.

Reply with quote

Advertisement

Dini
Guest

Yes, but the error is different (SSL connection failed: session reuse required). "Reuse TLS/SSL session ID for data connections" is enabled.
. 2021-08-11 18:49:01.783 Using FTP protocol.
. 2021-08-11 18:49:01.785 Doing startup conversation with host.
> 2021-08-11 18:49:01.800 PWD
< 2021-08-11 18:49:01.803 257 "/" is the current directory
. 2021-08-11 18:49:01.803 Changing directory to "/".
> 2021-08-11 18:49:01.803 CWD /
< 2021-08-11 18:49:01.806 250 Directory successfully changed.
. 2021-08-11 18:49:01.806 Getting current directory name.
> 2021-08-11 18:49:01.806 PWD
< 2021-08-11 18:49:01.812 257 "/" is the current directory
. 2021-08-11 18:49:01.861 Retrieving directory listing...
> 2021-08-11 18:49:01.861 TYPE A
< 2021-08-11 18:49:01.863 200 Switching to ASCII mode.
> 2021-08-11 18:49:01.863 PASV
< 2021-08-11 18:49:01.866 227 Entering Passive Mode (192,168,1,5,192,19).
> 2021-08-11 18:49:01.866 LIST -a
. 2021-08-11 18:49:01.866 Connecting to 192.168.1.5:49171 ...
< 2021-08-11 18:49:01.879 150 Here comes the directory listing.
. 2021-08-11 18:49:01.902 Using TLSv1.3, cipher TLSv1.3: TLS_AES_256_GCM_SHA384, 2048 bit RSA, TLS_AES_256_GCM_SHA384  TLSv1.3 Kx=any      Au=any  Enc=AESGCM(256) Mac=AEAD
. 2021-08-11 18:49:01.902 TLS connection established
. 2021-08-11 18:49:01.912 Session ID reused
. 2021-08-11 18:49:01.922 drwxrwxr-x    3 1000     1000         4096 Aug 02 21:24 .
. 2021-08-11 18:49:01.922 drwxrwxr-x    3 1000     1000         4096 Aug 02 21:24 ..
. 2021-08-11 18:49:01.922 drwxrwxrwx    2 1000     1000         4096 Aug 01 19:38 pub
< 2021-08-11 18:49:01.927 226 Directory send OK.
. 2021-08-11 18:49:01.927 Directory listing successful
. 2021-08-11 18:49:01.927 Detecting timezone difference...
. 2021-08-11 18:49:01.927 Found no file to use for detecting timezone difference
. 2021-08-11 18:49:01.927 Warning: Timezone difference was not detected yet, timestamps may be incorrect
. 2021-08-11 18:49:01.927 ..;D;0;1899-12-30T01:00:00.000Z;0;"" [0];"" [0];---------;0
. 2021-08-11 18:49:01.927 pub;D;0;2021-08-01T17:38:00.000Z;1;"1000" [0];"1000" [0];rwxrwxrwx;1
. 2021-08-11 18:49:01.978 Startup conversation with host finished.
. 2021-08-11 18:49:02.659 Getting current directory name.
. 2021-08-11 18:49:02.660 Retrieving directory listing...
> 2021-08-11 18:49:02.660 TYPE A
< 2021-08-11 18:49:02.662 200 Switching to ASCII mode.
> 2021-08-11 18:49:02.662 PASV
< 2021-08-11 18:49:02.666 227 Entering Passive Mode (192,168,1,5,213,133).
> 2021-08-11 18:49:02.666 LIST -a
. 2021-08-11 18:49:02.666 Connecting to 192.168.1.5:54661 ...
< 2021-08-11 18:49:02.672 150 Here comes the directory listing.
. 2021-08-11 18:49:02.853 Server asks for authentication with a client certificate.
. 2021-08-11 18:49:02.854 Using TLSv1.3, cipher TLSv1.3: TLS_AES_256_GCM_SHA384, 2048 bit RSA, TLS_AES_256_GCM_SHA384  TLSv1.3 Kx=any      Au=any  Enc=AESGCM(256) Mac=AEAD
. 2021-08-11 18:49:02.854 TLS connection established
. 2021-08-11 18:49:02.860 <Empty directory listing>
< 2021-08-11 18:49:02.873 522 SSL connection failed: session reuse required
. 2021-08-11 18:49:02.873 Could not retrieve directory listing
* 2021-08-11 18:49:02.886 (ECommand) Error listing directory '/'.
* 2021-08-11 18:49:02.886 Server asks for authentication with a client certificate.
* 2021-08-11 18:49:02.886 Could not retrieve directory listing
* 2021-08-11 18:49:02.886 SSL connection failed: session reuse required
. 2021-08-11 18:49:02.941 Disconnected from server
* 2021-08-11 18:49:04.637 (ESshFatal) **Lost connection.**
* 2021-08-11 18:49:04.637 Disconnected from server 

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

I have added this issue to the tracker:
https://winscp.net/tracker/2018

Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

You can post new topics in this forum