FTP-SSL - Losing connection/timing out when sending file

Advertisement

dmusson17
Joined:
Posts:
2

FTP-SSL - Losing connection/timing out when sending file

Hello,

I am trying to run FTP-SSL via a script in version 4.2.9 on a Windows 2003 server and it seems like the connection is fine and then when I go to send the file it times out.

Here is my script:
option transfer ascii
option batch on
option confirm on
open ftps://UserID:Password@ftp.destination.com:20021 -explicitssl -passive -certificate="xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx" -timeout=20
cd /DestinationDirectory
put myfile DestinationFile
exit


The recipient says that they see the following SSL error in their logs:

SSL: ERROR - SSLHandshake() completed - err=-6990.
01/03/11-12:40:15 SSL: dataconn: Error -6990: from SSLHandshake()

Here is my log:


. 2011-01-03 13:32:32.566 --------------------------------------------------------------------------
. 2011-01-03 13:32:32.566 WinSCP Version 4.2.9 (Build 938) (OS 5.2.3790 Service Pack 2)
. 2011-01-03 13:32:32.566 Login time: Monday, January 03, 2011 1:32:32 PM
. 2011-01-03 13:32:32.566 --------------------------------------------------------------------------
. 2011-01-03 13:32:32.566 Session name: UserID@ftp.destination.com
. 2011-01-03 13:32:32.566 Host name: ftp.destination.com (Port: 20021)
. 2011-01-03 13:32:32.566 User name: UserID (Password: Yes, Key file: No)
. 2011-01-03 13:32:32.566 Tunnel: No
. 2011-01-03 13:32:32.566 Transfer Protocol: FTP
. 2011-01-03 13:32:32.566 Ping type: C, Ping interval: 30 sec; Timeout: 20 sec
. 2011-01-03 13:32:32.566 Proxy: none
. 2011-01-03 13:32:32.566 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: No]
. 2011-01-03 13:32:32.566 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-01-03 13:32:32.566 Cache directory changes: Yes, Permanent: Yes
. 2011-01-03 13:32:32.566 DST mode: 1
. 2011-01-03 13:32:32.566 --------------------------------------------------------------------------
. 2011-01-03 13:32:32.566 Connecting to ftp.destination.com:20021 ...
. 2011-01-03 13:32:32.722 Connected with ftp.destination.com:20021, negotiating SSL connection...
< 2011-01-03 13:32:33.004 220 Welcome to Data Distribution Services. Time = 13:32:32
> 2011-01-03 13:32:33.004 AUTH SSL
< 2011-01-03 13:32:33.019 234 AUTH TLS-P/SSL OK.
. 2011-01-03 13:32:33.316 SSL connection established. Waiting for welcome message...
> 2011-01-03 13:32:33.316 USER UserID
< 2011-01-03 13:32:33.488 331 Password required for UserID.
> 2011-01-03 13:32:33.488 PASS ********
< 2011-01-03 13:32:33.738 230 Connect:Enterprise UNIX login ok, access restrictions apply.
> 2011-01-03 13:32:33.738 SYST
< 2011-01-03 13:32:33.753 215 UNKNOWN Type: L8
> 2011-01-03 13:32:33.753 FEAT
< 2011-01-03 13:32:33.769 500 'FEAT': command not understood.
> 2011-01-03 13:32:33.769 PBSZ 0
< 2011-01-03 13:32:33.785 200 PBSZ 0 OK.
> 2011-01-03 13:32:33.785 PROT P
< 2011-01-03 13:32:33.800 200 PROT P OK, data channel will be secured.
. 2011-01-03 13:32:33.800 Connected
. 2011-01-03 13:32:33.800 --------------------------------------------------------------------------
. 2011-01-03 13:32:33.800 Using FTP protocol.
. 2011-01-03 13:32:33.800 Doing startup conversation with host.
> 2011-01-03 13:32:33.800 PWD
< 2011-01-03 13:32:33.816 257 "/UserID" is current directory.
. 2011-01-03 13:32:33.816 Getting current directory name.
. 2011-01-03 13:32:33.816 Startup conversation with host finished.
< 2011-01-03 13:32:33.863 Script: Active session: [1] UserID@ftp.destination.com
> 2011-01-03 13:32:33.863 Script: cd /DestinationDirectory
. 2011-01-03 13:32:33.863 Cached directory change via "/DestinationDirectory" to "/DestinationDirectory".
. 2011-01-03 13:32:33.863 Getting current directory name.
< 2011-01-03 13:32:33.863 Script: /DestinationDirectory
> 2011-01-03 13:32:33.878 Script: put myfile destinationfile
. 2011-01-03 13:32:33.878 Copying 1 files/directories to remote directory "/DestinationDirectory"
. 2011-01-03 13:32:33.878 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S

(102400); CalcS: No; Mask: destinationfile
. 2011-01-03 13:32:33.878 TM: A; ClAr: No; CPS: 0; ExclM(No):
. 2011-01-03 13:32:33.878 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas;

*.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-01-03 13:32:33.878 File: "myfile"
. 2011-01-03 13:32:33.878 Copying "myfile" to remote directory started.
. 2011-01-03 13:32:33.878 Ascii transfer mode selected.
. 2011-01-03 13:32:33.878 Starting upload of myfile
> 2011-01-03 13:32:33.878 CWD /DestinationDirectory/
< 2011-01-03 13:32:33.894 250 CWD command successful.
> 2011-01-03 13:32:33.894 PWD
< 2011-01-03 13:32:33.910 257 "/DestinationDirectory" is current directory.
> 2011-01-03 13:32:33.910 TYPE A
< 2011-01-03 13:32:33.925 200 Type set to A.
> 2011-01-03 13:32:33.925 PASV
< 2011-01-03 13:32:33.957 227 Entering Passive Mode (170,135,128,149,82,8)
> 2011-01-03 13:32:33.957 LIST
< 2011-01-03 13:32:34.066 150 Opening ASCII mode data connection for .
. 2011-01-03 13:32:34.191 SSL connection established
< 2011-01-03 13:32:34.285 226 Transfer complete.
> 2011-01-03 13:32:34.285 TYPE A
< 2011-01-03 13:32:34.300 200 Type set to A.
> 2011-01-03 13:32:34.300 PASV
< 2011-01-03 13:32:34.300 227 Entering Passive Mode (170,135,128,149,82,9)
> 2011-01-03 13:32:34.300 STOR destinationfile
< 2011-01-03 13:32:34.394 150 Opening ASCII mode data connection for destinationfile.
. 2011-01-03 13:32:54.659 Timeout detected.
. 2011-01-03 13:32:54.659 Copying files to remote side failed.
. 2011-01-03 13:32:54.659 Connection was lost, asking what to do.
. 2011-01-03 13:32:54.659 Asking user:
. 2011-01-03 13:32:54.659 Lost connection. ("Timeout detected.","Copying files to remote side failed.","Opening

ASCII mode data connection for destinationfile.")
< 2011-01-03 13:33:01.549 Script: Connecting to ftp.destination.com:20021 ...
. 2011-01-03 13:33:01.549 Connecting to ftp.destination.com:20021 ...
< 2011-01-03 13:33:01.658 Script: Connected with ftp.destination.com:20021, negotiating SSL connection...
. 2011-01-03 13:33:01.674 Connected with ftp.destination.com:20021, negotiating SSL connection...
< 2011-01-03 13:33:01.940 220 Welcome to Data Distribution Services. Time = 13:33:01
> 2011-01-03 13:33:01.940 AUTH SSL
< 2011-01-03 13:33:01.955 234 AUTH TLS-P/SSL OK.
< 2011-01-03 13:33:02.065 Script: SSL connection established. Waiting for welcome message...
. 2011-01-03 13:33:02.065 SSL connection established. Waiting for welcome message...
> 2011-01-03 13:33:02.065 USER UserID
< 2011-01-03 13:33:02.236 331 Password required for UserID.
> 2011-01-03 13:33:02.236 PASS ********
< 2011-01-03 13:33:02.486 230 Connect:Enterprise UNIX login ok, access restrictions apply.
> 2011-01-03 13:33:02.486 SYST
< 2011-01-03 13:33:02.518 215 UNKNOWN Type: L8
> 2011-01-03 13:33:02.518 FEAT
< 2011-01-03 13:33:02.549 500 'FEAT': command not understood.
> 2011-01-03 13:33:02.549 PBSZ 0
< 2011-01-03 13:33:02.564 200 PBSZ 0 OK.
> 2011-01-03 13:33:02.564 PROT P
< 2011-01-03 13:33:02.627 200 PROT P OK, data channel will be secured.
< 2011-01-03 13:33:02.627 Script: Connected
. 2011-01-03 13:33:02.627 Connected
. 2011-01-03 13:33:02.627 Doing startup conversation with host.
< 2011-01-03 13:33:02.627 Script: Starting the session...
< 2011-01-03 13:33:02.627 Script: Reading remote directory...
. 2011-01-03 13:33:02.643 Changing directory to "/DestinationDirectory".
. 2011-01-03 13:33:02.643 Synchronizing current directory "/DestinationDirectory".
> 2011-01-03 13:33:02.643 CWD /DestinationDirectory
< 2011-01-03 13:33:02.643 250 CWD command successful.
> 2011-01-03 13:33:02.643 CWD /DestinationDirectory
< 2011-01-03 13:33:02.674 250 CWD command successful.
. 2011-01-03 13:33:02.674 Getting current directory name.
> 2011-01-03 13:33:02.674 PWD
< 2011-01-03 13:33:02.705 257 "/DestinationDirectory" is current directory.
. 2011-01-03 13:33:02.705 Startup conversation with host finished.
< 2011-01-03 13:33:02.705 Script: Session started.
. 2011-01-03 13:33:02.705 File: "myfile"
. 2011-01-03 13:33:02.705 Copying "myfile" to remote directory started.
. 2011-01-03 13:33:02.705 Ascii transfer mode selected.
. 2011-01-03 13:33:02.705 Starting upload of myfile
> 2011-01-03 13:33:02.705 TYPE A
< 2011-01-03 13:33:02.721 200 Type set to A.
> 2011-01-03 13:33:02.721 PASV
< 2011-01-03 13:33:02.752 227 Entering Passive Mode (170,135,128,149,82,9)
> 2011-01-03 13:33:02.752 LIST
< 2011-01-03 13:33:02.877 150 Opening ASCII mode data connection for .
. 2011-01-03 13:33:02.955 SSL connection established
< 2011-01-03 13:33:03.033 226 Transfer complete.
> 2011-01-03 13:33:03.033 TYPE A
< 2011-01-03 13:33:03.049 200 Type set to A.
> 2011-01-03 13:33:03.049 PASV
< 2011-01-03 13:33:03.049 227 Entering Passive Mode (170,135,128,149,82,10)
> 2011-01-03 13:33:03.049 STOR destinationfile
< 2011-01-03 13:33:03.299 150 Opening ASCII mode data connection for destinationfile.
. 2011-01-03 13:33:23.657 Timeout detected.
. 2011-01-03 13:33:23.657 Copying files to remote side failed.
. 2011-01-03 13:33:23.657 Connection was lost, asking what to do.
. 2011-01-03 13:33:23.657 Asking user:
. 2011-01-03 13:33:23.657 Lost connection. ("Timeout detected.","Copying files to remote side failed.","Opening

ASCII mode data connection for destinationfile.")

Any help is greatly appreciated.

Thanks!

Reply with quote

Advertisement

dmusson17
Joined:
Posts:
2

Re: FTP-SSL - Losing connection/timing out when sending file

martin wrote:

Does it happen for any file? SSL only?

Yes any file when using SSL. I worked with the vendor to switch to SSH and was able to get it to work. I'm still not sure if the SSL problems were an issue on my side or their side, though they were pretty adament that all was well on their side.

Reply with quote

Advertisement

You can post new topics in this forum