This project is read-only.

FTPS and Filezilla server

Mar 27, 2012 at 8:24 PM

I have a situation where I can use a Filezilla or smartFTP client to connect to a remote server, but cannot get AlexFTPS to connect.

If I try to connect with -ssl Implicit, I get "Error: Prot P required.

Every other SSL option times out with the following error:

ERROR: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

 

I've used the same client to connect to several other ftps servers successfully.  Anyone know where I might start looking to resolve this?  I suspect that the issue is the configuration on the remote side, but I have no access to, or control over the remote server.  And I REALLY need this to work in order to automate some file transfers. 

 


ERROR: Unable to read data from the transport connection: A connection attempt f
ailed because the connected party did not properly respond after a period of tim
e, or established connection failed because connected host has failed to respond
.
Mar 27, 2012 at 9:19 PM

Hi, can you post here the FileZilla log? 

Mar 28, 2012 at 5:55 PM
Edited Mar 28, 2012 at 5:56 PM

Connecting to remote server using Filezilla as the client:

 

11:51:16    Status:    Connecting to x.x.x.x:990...
11:51:16    Status:    Connection established, initializing TLS...
11:51:16    Status:    Verifying certificate...
11:51:19    Status:    TLS/SSL connection established, waiting for welcome message...
11:51:19    Response:    220-FileZilla Server version 0.9.34 beta
11:51:19    Response:    220 Welcome to REMOTE SERVER
11:51:19    Command:    USER USERNAME
11:51:19    Response:    331 Password required for USERNAME
11:51:19    Command:    PASS **************
11:51:19    Response:    230 Logged on
11:51:19    Command:    SYST
11:51:19    Response:    215 UNIX emulated by FileZilla
11:51:19    Command:    FEAT
11:51:19    Response:    211-Features:
11:51:19    Response:     MDTM
11:51:19    Response:     REST STREAM
11:51:19    Response:     SIZE
11:51:19    Response:     MLST type*;size*;modify*;
11:51:19    Response:     MLSD
11:51:19    Response:     AUTH SSL
11:51:19    Response:     AUTH TLS
11:51:19    Response:     UTF8
11:51:19    Response:     CLNT
11:51:19    Response:     MFMT
11:51:19    Response:    211 End
11:51:19    Command:    PBSZ 0
11:51:19    Response:    200 PBSZ=0
11:51:19    Command:    PROT P
11:51:20    Response:    200 Protection level set to P
11:51:20    Status:    Connected
11:51:20    Status:    Retrieving directory listing...
11:51:20    Command:    PWD
11:51:20    Response:    257 "/" is current directory.
11:51:20    Command:    TYPE I
11:51:20    Response:    200 Type set to I
11:51:20    Command:    PASV
11:51:20    Response:    227 Entering Passive Mode (x.x.x.x,196,172)
11:51:20    Command:    MLSD
11:51:20    Response:    150 Connection accepted
11:51:20    Response:    226 Transfer OK
11:51:20    Status:    Directory listing successful
11:51:23    Status:    Connecting to x.x.x.x:990...
11:51:23    Status:    Connection established, initializing TLS...
11:51:23    Status:    Verifying certificate...
11:51:23    Status:    TLS/SSL connection established, waiting for welcome message...
11:51:23    Response:    220-FileZilla Server version 0.9.34 beta
11:51:23    Response:    220 REMOTE SERVER
11:51:23    Command:    USER USERNAME
11:51:24    Response:    331 Password required for USERNAME
11:51:24    Command:    PASS **************
11:51:24    Response:    230 Logged on
11:51:24    Command:    PBSZ 0
11:51:24    Response:    200 PBSZ=0
11:51:24    Command:    PROT P
11:51:24    Response:    200 Protection level set to P
11:51:24    Status:    Connected
11:51:24    Status:    Starting upload of C:\testfile.txt
11:51:24    Command:    CWD /
11:51:24    Response:    250 CWD successful. "/" is current directory.
11:51:24    Command:    PWD
11:51:24    Response:    257 "/" is current directory.
11:51:24    Command:    TYPE A
11:51:24    Response:    200 Type set to A
11:51:24    Command:    PASV
11:51:24    Response:    227 Entering Passive Mode (x.x.x.x,196,173)
11:51:24    Command:    STOR testfile.txt
11:51:24    Response:    150 Connection accepted
11:51:24    Response:    226 Transfer OK
11:51:24    Status:    File transfer successful, transferred 0 bytes in 1 second
11:51:24    Status:    Retrieving directory listing...
11:51:24    Command:    TYPE I
11:51:24    Response:    200 Type set to I
11:51:24    Command:    PASV
11:51:24    Response:    227 Entering Passive Mode (x.x.x.x,196,174)
11:51:24    Command:    MLSD
11:51:24    Response:    150 Connection accepted
11:51:25    Response:    226 Transfer OK
11:51:25    Status:    Directory listing successful
11:51:30    Command:    DELE testfile.txt
11:51:30    Response:    250 File deleted successfully

Apr 2, 2012 at 8:53 PM

Does that help?  I might be able to get the server side logs.  The guy I'm working with on the other end doesn't have much access, but he might be able to talk to someone who does.

 

Thanks!

Apr 12, 2012 at 12:59 PM
Edited Apr 12, 2012 at 1:03 PM

Implicit connections don't require a PROT P command normally (that's explicit FTPS), but being Implicit FTPS a non standard protocol, there's no rule for that.

Alessandro Pilotti

[ MVP ASP.Net / IIS]

Apr 12, 2012 at 1:04 PM

Can you try the latest beta available here?

http://dl.dropbox.com/u/9060190/AlexFTPS_bin_1.1.1_beta1.zip

The "PROT P" command is already in place.

 

Alessandro Pilotti

[ MVP ASP.Net / IIS]

 

 

Apr 12, 2012 at 8:38 PM

Hrmm... doens't appear to have changed the behavior at all.  I still get PROT P required when attempting -ssl Implicit, but get the timeout error with any other encryption level.

Apr 12, 2012 at 9:31 PM

Can you please post a log with "-logFile output.txt"? That way I could compare it with the FileZilla log.

Thanks,

Alessandro

Apr 16, 2012 at 6:14 PM

When I try any level of explicit SSL encryption, all I get in the log file is "QUIT"

Here is the output I get when I use SSL Implicit:

220 FileZilla Server version 0.9.34 beta
Welcome to REMOTE SERVER
USER USERNAME
331 Password required for USERNAME
PASS ********
230 Logged on
FEAT
211 Features:
MDTM
REST STREAM
SIZE
MLST type*;size*;modify*;
MLSD
AUTH SSL
AUTH TLS
UTF8
CLNT
MFMT
End
CLNT AlexFTPS
200 Don't care
OPTS UTF8 ON
200 UTF8 mode enabled
TYPE I
200 Type set to I
PWD
257 "/" is current directory.
PASV
227 Entering Passive Mode (x.x.x.x,196,26)
LIST /
550 PROT P required
QUIT

Apr 17, 2012 at 11:44 AM

Thanks for the log. Now I clearly see why is this happening.

The server is not advertising "PROT" and "PBSZ" in the "FEAT" list but only "AUTH SSL" and "AUTH TLS".

 

Here's a solution. Can you please test in order to confirm it?

http://dl.dropbox.com/u/9060190/AlexFTPS_bin_1.1.1_beta2.zip

 

Thanks,

Alessandro

Apr 17, 2012 at 9:42 PM

That did it!  Thanks so much for your time and effort. 

Apr 17, 2012 at 11:16 PM

Great,

tx for testing!

Alessandro