openssl and vsftpd

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

openssl and vsftpd

Post by *HAL 9000 »

hello,
I noticed a problem with openssl libraries and vsftpd,
those from www.openssl.org are not working properly
TC in ftps connection show some error on directory listing
(in older version hangs on listing)

Code: Select all

227 Entering Passive Mode (150,254,125,192,112,30)
LIST
150 Here comes the directory listing.
SSL data connection error: 5, ERR_get_error=0
ABOR
i tried other libraries, and work only with
gnuwin32.sourceforge.net/packages/openssl.htm
I tested with other ftp clients (core,flashfxp,filezilla)
and all works fine except fireftp where list takes few minutes

I put the correct library on slan.licho.org/ssl
maybe it will help someone

regards,
slan
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3860
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Have a look at this thread, very first post only:

Code: Select all

Warning:
You may get an access violation if you use a mix of old and new versions of the dlls libeay32.dll, libssl32.dll and libssh2.dll, e.g. when using sftp and the built-in ftps in parallel. You should use the 3 dlls from libcurl together if you need both functions.
This means: just use the libraries of cURL package, which based on OpenSSL ones.
#5767 Personal license
HAL 9000
Senior Member
Senior Member
Posts: 384
Joined: 2007-09-10, 13:05 UTC

Post by *HAL 9000 »

these libraries also have this same error

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

Post by *ghisler(Author) »

It looks like the server doesn't even connect. If all you want is to securely send the password and commands, but don't need to encrypt the data, try to add this to the settings of the connection, in "Send commands":
PROT C

Then TC will only encrypt the control connection, not the data connections. This will also be a lot faster with some servers.
Author of Total Commander
https://www.ghisler.com
richey
New Member
New Member
Posts: 1
Joined: 2017-05-19, 09:17 UTC

Post by *richey »

Hi everyone,

I have set my server to only allow SFTP connections, and so far, everything worked just fine for me..

However, since I've moved my stuff (including the TotalCmd directory which also contained the SSL DLL files) to a new notebook computer running Windows 10 (not sure if it's related to that), I can connect to my server, but not create data connections ("Handshake failed") anymore.

I've tried with a variety of SSL binaries (copied to the Totalcmd directory), but no success so far. Sending the "PROT C" command blocks the connection attempt. Any idea why I can do to make this work (apart from going without SFTP altogether)?

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

Post by *ghisler(Author) »

Please post as log of the failed connection. You can create it via Configuration - Options - FTP - Create a log file. You should change sensitive information like host name or IP addresses, but please do not delete any lines.
Author of Total Commander
https://www.ghisler.com
Post Reply