Connection time out when specifying port for SSL

Advertisement

JimGriffith
Joined:
Posts:
18

Connection time out when specifying port for SSL

If I specify a port in my script, the connection times out. But if I remove the port, the connection is successful to the same server.

open ftps:user:pass4@ftpsite.com:990 - times out

open ftps:user:pass4@ftpsite.com - successful.

If I specify the port, does it have to be in active mode versus passive?

Any help is appreciated. Thanks!

Reply with quote E-mail

Advertisement

JimGriffith
Joined:
Posts:
18

Without specifying port:

. 2010-03-03 11:07:33.335 --------------------------------------------------------------------------
. 2010-03-03 11:07:33.335 WinSCP Version 4.2.5 (Build 624) (OS 5.2.3790 Service Pack 2)
. 2010-03-03 11:07:33.335 Login time: Wednesday, March 03, 2010 11:07:33 AM
. 2010-03-03 11:07:33.335 --------------------------------------------------------------------------
. 2010-03-03 11:07:33.335 Session name: user@ftpserver.com
. 2010-03-03 11:07:33.335 Host name: ftpserver.com (Port: 990)
. 2010-03-03 11:07:33.335 User name: user (Password: Yes, Key file: No)
. 2010-03-03 11:07:33.335 Tunnel: No
. 2010-03-03 11:07:33.335 Transfer Protocol: FTP
. 2010-03-03 11:07:33.335 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2010-03-03 11:07:33.335 Proxy: none
. 2010-03-03 11:07:33.335 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: Yes]
. 2010-03-03 11:07:33.335 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-03-03 11:07:33.335 Cache directory changes: Yes, Permanent: Yes
. 2010-03-03 11:07:33.335 DST mode: 1
. 2010-03-03 11:07:33.335 --------------------------------------------------------------------------
. 2010-03-03 11:07:35.038 Connecting to ftpserver.com:990 ...
. 2010-03-03 11:07:35.491 Connected with ftpserver.com:990, negotiating SSL connection...
. 2010-03-03 11:07:36.179 SSL connection established. Waiting for welcome message...
< 2010-03-03 11:07:36.195 220 Titan FTP Server 7.12.896 Ready.
> 2010-03-03 11:07:36.195 USER user
< 2010-03-03 11:07:36.304 331 User name okay, need password.
> 2010-03-03 11:07:36.304 PASS ******
< 2010-03-03 11:07:36.460 230-Welcome user from 192.168.128.1. You are now logged in to the server.
< 2010-03-03 11:07:36.460 230 User logged in, proceed.
> 2010-03-03 11:07:36.460 SYST
< 2010-03-03 11:07:36.554 215 UNIX Type: L8
> 2010-03-03 11:07:36.554 FEAT
< 2010-03-03 11:07:36.632 211-Extensions Supported
< 2010-03-03 11:07:36.632 COMB
< 2010-03-03 11:07:36.632 MLST type*;size*;modify*;create*;perm*;
< 2010-03-03 11:07:36.632 UTF8
< 2010-03-03 11:07:36.632 SIZE
< 2010-03-03 11:07:36.632 MDTM
< 2010-03-03 11:07:36.632 MFMT
< 2010-03-03 11:07:36.632 MFCT
< 2010-03-03 11:07:36.632 EPRT
< 2010-03-03 11:07:36.632 EPSV
< 2010-03-03 11:07:36.632 XCRC
< 2010-03-03 11:07:36.632 REST STREAM
< 2010-03-03 11:07:36.632 CCC
< 2010-03-03 11:07:36.632 PBSZ
< 2010-03-03 11:07:36.632 PROT
< 2010-03-03 11:07:36.632 DQTA
< 2010-03-03 11:07:36.632 211 End
> 2010-03-03 11:07:36.632 OPTS UTF8 ON
< 2010-03-03 11:07:36.726 200 UTF-8 Encoding enabled.
> 2010-03-03 11:07:36.726 PBSZ 0
< 2010-03-03 11:07:36.804 200 Command OK. PBSZ=0
> 2010-03-03 11:07:36.804 PROT P
< 2010-03-03 11:07:36.898 200 Encrypting Data Channel.
. 2010-03-03 11:07:36.898 Connected
. 2010-03-03 11:07:36.898 --------------------------------------------------------------------------
. 2010-03-03 11:07:36.913 Using FTP protocol.
. 2010-03-03 11:07:36.913 Doing startup conversation with host.
> 2010-03-03 11:07:36.913 PWD
< 2010-03-03 11:07:36.992 257 "/" is current directory.
. 2010-03-03 11:07:36.992 Getting current directory name.
. 2010-03-03 11:07:36.992 Startup conversation with host finished.
. 2010-03-03 11:07:37.007 Copying 1 files/directories to remote directory "/"
. 2010-03-03 11:07:37.007 PrTime: Yes; PrRO: Yes; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-03-03 11:07:37.007 TM: B; ClAr: No; CPS: 0; ExclM(No):
. 2010-03-03 11:07:37.007 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-03-03 11:07:37.038 File: "c:\sftproot\jim\testfile.txt"
. 2010-03-03 11:07:37.101 Copying "c:\sftproot\jim\testfile.txt" to remote directory started.
. 2010-03-03 11:07:37.148 Binary transfer mode selected.
. 2010-03-03 11:07:37.179 Starting upload of c:\sftproot\jim\testfile.txt
> 2010-03-03 11:07:37.179 TYPE A
< 2010-03-03 11:07:37.257 200 Type set to A.
> 2010-03-03 11:07:37.257 PASV
< 2010-03-03 11:07:37.367 227 Entering Passive Mode (192,168,128,5,4,1).
> 2010-03-03 11:07:37.429 LIST
< 2010-03-03 11:07:37.523 150 File status okay; about to open data connection.
. 2010-03-03 11:07:37.867 SSL connection established
< 2010-03-03 11:07:37.976 226 Closing data connection. Transferred 260 bytes.
> 2010-03-03 11:07:37.992 TYPE I
< 2010-03-03 11:07:38.070 200 Type set to I.
> 2010-03-03 11:07:38.070 PASV
< 2010-03-03 11:07:38.163 227 Entering Passive Mode (192,168,128,5,4,1).
> 2010-03-03 11:07:38.163 STOR testfile.txt
< 2010-03-03 11:07:38.242 150 File status okay; about to open data connection.
. 2010-03-03 11:07:38.601 SSL connection established
< 2010-03-03 11:07:38.695 226 Closing data connection. Transferred 2,436 bytes in 1 seconds. 2KB/second.
> 2010-03-03 11:07:38.695 MFMT 20100218203918 testfile.txt
< 2010-03-03 11:07:38.788 213 Modify=20100218203918; testfile.txt
. 2010-03-03 11:07:38.788 Upload successful
. 2010-03-03 11:07:38.788 Disconnected from server



With port specified:

. 2010-03-03 11:08:21.071 --------------------------------------------------------------------------
. 2010-03-03 11:08:21.071 WinSCP Version 4.2.5 (Build 624) (OS 5.2.3790 Service Pack 2)
. 2010-03-03 11:08:21.071 Login time: Wednesday, March 03, 2010 11:08:21 AM
. 2010-03-03 11:08:21.071 --------------------------------------------------------------------------
. 2010-03-03 11:08:21.071 Session name: user@ftpserver.com
. 2010-03-03 11:08:21.071 Host name: ftpserver.com (Port: 990)
. 2010-03-03 11:08:21.071 User name: user (Password: Yes, Key file: No)
. 2010-03-03 11:08:21.071 Tunnel: No
. 2010-03-03 11:08:21.071 Transfer Protocol: FTP
. 2010-03-03 11:08:21.071 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2010-03-03 11:08:21.071 Proxy: none
. 2010-03-03 11:08:21.071 FTP: FTPS: None; Passive: Yes [Force IP: Yes]
. 2010-03-03 11:08:21.071 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-03-03 11:08:21.071 Cache directory changes: Yes, Permanent: Yes
. 2010-03-03 11:08:21.071 DST mode: 1
. 2010-03-03 11:08:21.071 --------------------------------------------------------------------------
. 2010-03-03 11:08:21.087 Connecting to ftpserver.com:990 ...
. 2010-03-03 11:08:21.181 Connected with ftpserver.com:990. Waiting for welcome message...
. 2010-03-03 11:08:36.166 Timeout detected.
. 2010-03-03 11:08:36.166 Connection failed.

Reply with quote E-mail

martin
Site Admin
martin avatar

Re: Connection time out when specifying port for SSL

Any changes you have stored session "user:pass4@ftpsite.com:990"?

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum