FTPS don't work in 10, but works fine in 9.51

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Rex
Junior Member
Junior Member
Posts: 51
Joined: 2003-10-30, 01:05 UTC

FTPS don't work in 10, but works fine in 9.51

Post by *Rex »

After upgrading to 10, my ftps connection don't work.
At first I thought that it was my provider that had made some changes, but FileZilla worked fine.
So i renamed my totalcmd dir, and did a 9.51 installation, and now my ftps is working perfect again.
I was looking threw the history.txt to see if I couldn't find any breaking changes.
I even tried to dl the openssl dll's and threw them in to the tcm folder, but that didn't help either.

My ftp log is:
v10

Code: Select all

----------
SSL: Libraries loaded OK! C:\Program Files (x86)\totalcmd_\ssleay32.dll, C:\Program Files (x86)\totalcmd_\libeay32.dll
Connect to: (09-07-2021 12:20:15 AM)
hostname=HOST:PORT
username=USERNAME
startdir=
HOST=HOSTIP
220 ProFTPD Server (Debian) [IPADDR]
AUTH TLS
234 AUTH TLS successful
Method: TLSv1
Cert subject: /C=GB/ST=none/L=none/CN=none
Cert issuer: /C=GB/ST=none/L=none/CN=none
USER USERNAME
331 Password required for USERNAME
PASS ***********
230 User USERNAME logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
 AUTH TLS
 CCC
 CLNT
 EPRT
 EPSV
 HOST
 LANG en-US
 MDTM
 MFF modify;UNIX.group;UNIX.mode;
 MFMT
 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
 PBSZ
 PROT
 REST STREAM
 SIZE
 SSCN
 TVFS
 UTF8
211 End
PBSZ 0
200 PBSZ 0 successful
PROT P
200 Protection set to Private
CLNT Total Commander (UTF-8)
200 OK
OPTS UTF8 ON
200 UTF8 set to on
Connect ok!
PWD
257 "/var/www/USERNAME" is the current directory
Get directory
TYPE A
200 Type set to A
PORT 10,24,0,14,201,47
200 PORT command successful
LIST -la
425 Unable to build data connection: Connection refused
PASV
450 LIST: Connection refused
PORT 10,24,0,14,201,48
227 Entering Passive Mode (IP,IP,IP,IP,132,129).
v 9.51

Code: Select all

----------
Using sChannel (Secur32.dll) for SSL/TLS connection.
Connect to: (09-07-2021 12:24:28 AM)
hostname=HOSTNAME:PORT
username=USERNAME
startdir=
HOST=IPADDR
220 ProFTPD Server (Debian) [IPADDR]
AUTH TLS
234 AUTH TLS successful
Client handshake...
Method: TLSv1
Cert subject: C=GB, S=none, L=none, CN=none
Cert issuer: C=GB, S=none, L=none, CN=none
USER USERNAME
331 Password required for USERNAME
PASS ***********
230 User USERNAME logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
 AUTH TLS
 CCC
 CLNT
 EPRT
 EPSV
 HOST
 LANG en-US
 MDTM
 MFF modify;UNIX.group;UNIX.mode;
 MFMT
 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
 PBSZ
 PROT
 REST STREAM
 SIZE
 SSCN
 TVFS
 UTF8
211 End
PBSZ 0
200 PBSZ 0 successful
PROT P
200 Protection set to Private
CLNT Total Commander (UTF-8)
200 OK
OPTS UTF8 ON
200 UTF8 set to on
Connect ok!
PWD
257 "/var/www/USERNAME" is the current directory
Get directory
TYPE A
200 Type set to A
PORT 10,24,0,14,201,72
200 PORT command successful
LIST -la
425 Unable to build data connection: Connection refused
PASV
227 Entering Passive Mode (IP,IP,IP,IP,150,233).
Connected to PASV port
LIST -la
150 Opening ASCII mode data connection for file list
Download
Waiting for server...
226 Transfer complete
Hope some one can help me, so I can get my ftps to work again.

Regards
/Rex
Last edited by Rex on 2021-07-09, 13:13 UTC, edited 1 time in total.
Personal License #58082
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: SFTP don't work in 10, but works fine in 9.51

Post by *Stefan2 »

Just some questions:
You have two different folders for 9.51 and 10? You didn't have just updated 9.51 in the old folder?
So you have two different SFTP-plugin installations, are your sure both share the very same settings?

Possible test:
Make a copy of your working 9.51 folder.
Unpack the tc1000.....exe install archive (for ex. rename to zip) and update the copied 9.51-files with the new files.
All plugins and settings are kept, only the TC-files are updated, but not the wincmd.ini.
Now try again.



 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: SFTP don't work in 10, but works fine in 9.51

Post by *ghisler(Author) »

2Rex
The logs are not for SFTP, they are for FTPS (FTP over SSL, similar to HTTPS).
The difference between the two logs is that TC 10 seems to use the OpenSSL DLLs, while TC 9 uses the sChannel library.
I don't know why this is happening, but you can instruct TC to prefer sChannel:
In file Wcx_ftp.ini add under section [General] the following line:
PreferOpenSSL=0

You can edit the file wcx_ftp.ini via menu Configuration - Change settings files directly. Make sure to edit wcx_ftp.ini and not wincmd.ini.
Author of Total Commander
https://www.ghisler.com
User avatar
Rex
Junior Member
Junior Member
Posts: 51
Joined: 2003-10-30, 01:05 UTC

Re: SFTP don't work in 10, but works fine in 9.51

Post by *Rex »

Stefan2 wrote: 2021-07-09, 06:06 UTC Just some questions:
You have two different folders for 9.51 and 10? You didn't have just updated 9.51 in the old folder?
So you have two different SFTP-plugin installations, are your sure both share the very same settings?

Possible test:
Make a copy of your working 9.51 folder.
Unpack the tc1000.....exe install archive (for ex. rename to zip) and update the copied 9.51-files with the new files.
All plugins and settings are kept, only the TC-files are updated, but not the wincmd.ini.
Now try again.
I always upgrade, and made an upgrade from 9.51 to 10, and my ftps (not sftp, it was a typo) stopped working.
So to check if it was v10 that was the problem, I renamed the v10 and installed a 9.51 - they both share my ini files, so the settings should be the same.

Cheers
/Rex
Personal License #58082
User avatar
Rex
Junior Member
Junior Member
Posts: 51
Joined: 2003-10-30, 01:05 UTC

Re: SFTP don't work in 10, but works fine in 9.51

Post by *Rex »

ghisler(Author) wrote: 2021-07-09, 09:16 UTC 2Rex
The logs are not for SFTP, they are for FTPS (FTP over SSL, similar to HTTPS).
The difference between the two logs is that TC 10 seems to use the OpenSSL DLLs, while TC 9 uses the sChannel library.
I don't know why this is happening, but you can instruct TC to prefer sChannel:
In file Wcx_ftp.ini add under section [General] the following line:
PreferOpenSSL=0

You can edit the file wcx_ftp.ini via menu Configuration - Change settings files directly. Make sure to edit wcx_ftp.ini and not wincmd.ini.
yeah, must be the heat 32.3 C° at my office :shock: it's a typo should had said ftps (I have edit my init post, so it's now says ftps as it should)

I tried to delete the openssl.dll's from tcm folder, the result is the same, no working ftps with v10.

Code: Select all

----------
Using sChannel (Secur32.dll) for SSL/TLS connection.
Connect to: (09-07-2021 3:16:55 PM)
hostname=**********************
username=***
startdir=
****=****
220 ProFTPD Server (Debian) [****]
AUTH TLS
234 AUTH TLS successful
Client handshake...
Method: TLSv1
Cert subject: C=GB, S=none, L=none, CN=none
Cert issuer: C=GB, S=none, L=none, CN=none
USER ***
331 Password required for ***
PASS ***********
230 User *** logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
 AUTH TLS
 CCC
 CLNT
 EPRT
 EPSV
 HOST
 LANG en-US
 MDTM
 MFF modify;UNIX.group;UNIX.mode;
 MFMT
 MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.groupname*;UNIX.mode*;UNIX.owner*;UNIX.ownername*;
 PBSZ
 PROT
 REST STREAM
 SIZE
 SSCN
 TVFS
 UTF8
211 End
PBSZ 0
200 PBSZ 0 successful
PROT P
200 Protection set to Private
CLNT Total Commander (UTF-8)
200 OK
OPTS UTF8 ON
200 UTF8 set to on
Connect ok!
PWD
257 "/var/www/***" is the current directory
Get directory
TYPE A
200 Type set to A
PORT 10,24,0,14,210,215
200 PORT command successful
LIST -la
425 Unable to build data connection: Connection refused
PASV
450 LIST: Connection refused
PORT 10,24,0,14,210,216
227 Entering Passive Mode (*,*,*,*,142,21).
LIST -la
200 PORT command successful
Cheers
/Rex
Personal License #58082
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTPS don't work in 10, but works fine in 9.51

Post by *ghisler(Author) »

According to the log, active (PORT) mode always fails, so you need to disable that in the connection options.
Author of Total Commander
https://www.ghisler.com
User avatar
Rex
Junior Member
Junior Member
Posts: 51
Joined: 2003-10-30, 01:05 UTC

Re: FTPS don't work in 10, but works fine in 9.51

Post by *Rex »

Hi
I have no ticks in the port fields Image: https://i.imgur.com/YmQiqri.png
This is my settings for FTP Image: https://i.imgur.com/nAV0KJV.png Image: https://i.imgur.com/q2PlYfj.png

9.51 and 10 uses the same ini files, so the settings should be identical, but 9.51 works and 10 don't :( and as said, I haven't changed any thing after upgrading to v10

Cheers
/Rex
Personal License #58082
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTPS don't work in 10, but works fine in 9.51

Post by *ghisler(Author) »

You need to open the settings of the connection, not the general FTP settings. Just open the connection dialog (Ctrl+F) then press Alt+Enter on a connection or click on "Edit...". Then check the option "Passive mode".
Author of Total Commander
https://www.ghisler.com
User avatar
Rex
Junior Member
Junior Member
Posts: 51
Joined: 2003-10-30, 01:05 UTC

Re: FTPS don't work in 10, but works fine in 9.51

Post by *Rex »

Ahh, that did the trick - now it's working again, thx @ghisler.
But how come that v10 don't have that ticked when v9.51 has? They both uses the same ini file.

Cheers
/Rex
Personal License #58082
User avatar
Hacker
Moderator
Moderator
Posts: 13052
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: FTPS don't work in 10, but works fine in 9.51

Post by *Hacker »

Rex,
Are you sure they both use the same wcx_ftp.ini?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: FTPS don't work in 10, but works fine in 9.51

Post by *ghisler(Author) »

v9.51 didn't have it ticked either, it also tried PORT mode first. From your log:

Code: Select all

PORT 10,24,0,14,201,72
200 PORT command successful
LIST -la
425 Unable to build data connection: Connection refused
PASV
227 Entering Passive Mode (IP,IP,IP,IP,150,233).
TC 10 also tries to switch to PASV mode if PORT fails, but for some unknown reason this doesn't work.
So when you enabled PASV mode by default, it will try that directly and not fail.
Author of Total Commander
https://www.ghisler.com
User avatar
Rex
Junior Member
Junior Member
Posts: 51
Joined: 2003-10-30, 01:05 UTC

Re: FTPS don't work in 10, but works fine in 9.51

Post by *Rex »

@hacker
Yep, both shows the same path. But ofc when I ticked it in v10, v9.51 had it ticked also :facepalm:
Got'a be the heat, makes me not thinking right.

@ghisler
Oki, it works now, and that what's important :)

Cheers
/Rex
Personal License #58082
Post Reply