Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Faaiz wrote:

This did not solve the problem.

What did you try?

We are able to connect to the host with the port number as you can see in the logging posted earlier. Even firewall looks good but still we face issues in retrieving listing directories.

The article I've pointed you to clearly explains that with FTP, it's actually quite common that you cannot transfer files (or retrieve directory listings) due to not properly configured FTP server, firewall or NAT (even if you are able to actually connect to the FTP server itself). Please read it again carefully.
Faaiz

Hi Team,

This did not solve the problem.
We are able to connect to the host with the port number as you can see in the logging posted earlier. Even firewall looks good but still we face issues in retrieving listing directories.

Is there something neede to be done additional since it is 2012 Server? The same setting works fine in Windows 2008 R2 server.

REgards,
Faaiz.
Faaiz

Connection timeout

HI Team,

I have Winscp in Windows Server 2012 and when tried to connect to an external FTP site face connection timeout problem
• Reqad through the forums and tried to do some troubleshooting.
• To cross check the connection i did telnet to the external website through port 21 and was working(also Putty was working good).
• Checked/Unchecked the passive mode.
• Selected ipv4/ipv6
• Changed the TLS/SSL settings to different values.
• Changed the windows settings for this application to run in Windows XP platform, Windows 2007 but still no luck.
• Enabled loggings and Below are the logs.

. 2015-02-13 10:33:05.458 --------------------------------------------------------------------------
. 2015-02-13 10:33:05.458 WinSCP Version 5.5.6 (Build 4746) (OS 6.2.9200 - Windows Server 2012 Datacenter)
. 2015-02-13 10:33:05.458 Configuration: C:\Users\User\AppData\Roaming\WinSCP.ini
. 2015-02-13 10:33:05.458 Local account: Domain\User
. 2015-02-13 10:33:05.458 Working directory: E:\Program Files (x86)\WinSCP
. 2015-02-13 10:33:05.458 Process ID: 4600
. 2015-02-13 10:33:05.458 Command-line: "E:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2015-02-13 10:33:05.458 Time zone: Current: GMT+1, Standard: GMT+1 (W. Europe Standard Time), DST: GMT+2 (W. Europe Daylight Time), DST Start: 29-3-2015, DST End: 25-10-2015
. 2015-02-13 10:33:05.458 Login time: vrijdag 13 februari 2015 10:33:05
. 2015-02-13 10:33:05.458 --------------------------------------------------------------------------
. 2015-02-13 10:33:05.458 Session name: www.com (Modified site)
. 2015-02-13 10:33:05.458 Host name: www.com (Port: 21)
. 2015-02-13 10:33:05.458 User name: (Password: Yes, Key file: No)
. 2015-02-13 10:33:05.458 Tunnel: No
. 2015-02-13 10:33:05.458 Transfer Protocol: FTP
. 2015-02-13 10:33:05.458 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2015-02-13 10:33:05.458 Proxy: none
. 2015-02-13 10:33:05.458 Send buffer: 262144
. 2015-02-13 10:33:05.458 UTF: 2
. 2015-02-13 10:33:05.458 FTP: FTPS: Explicit SSL; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2015-02-13 10:33:05.458 Session reuse: Yes
. 2015-02-13 10:33:05.458 TLS/SSL versions: TLSv1.0-TLSv1.0
. 2015-02-13 10:33:05.458 Local directory: C:\Users\User\Documents, Remote directory: /, Update: Yes, Cache: Yes
. 2015-02-13 10:33:05.458 Cache directory changes: Yes, Permanent: Yes
. 2015-02-13 10:33:05.458 DST mode: 1; Timezone offset: 0h 0m
. 2015-02-13 10:33:05.458 --------------------------------------------------------------------------
. 2015-02-13 10:33:05.536 Connecting to www.com ...
. 2015-02-13 10:33:05.599 Connected with www.com, negotiating TLS connection...
< 2015-02-13 10:33:05.599 220 Microsoft FTP Service
> 2015-02-13 10:33:05.599 AUTH SSL
< 2015-02-13 10:33:05.599 234 AUTH command ok. Expecting TLS Negotiation.
. 2015-02-13 10:33:05.599 Verifying certificate for "External." with fingerprint 7d:e6:79:69:42:aa:b6:40:ca:90:85:c8:cb:03:02:24:31:9e:f2:1d
. 2015-02-13 10:33:05.599 Certificate common name "www.com" matches hostname
. 2015-02-13 10:33:05.599 Certificate for "External." matches cached fingerprint
. 2015-02-13 10:33:05.599 Using TLSv1, cipher TLSv1/SSLv3: AES256-SHA, 2048 bit RSA
. 2015-02-13 10:33:05.661 TLS connection established. Waiting for welcome message...
> 2015-02-13 10:33:05.661 USER UserName
< 2015-02-13 10:33:05.661 331 Password required for UserName.
> 2015-02-13 10:33:05.661 PASS **********
< 2015-02-13 10:33:05.661 230 User logged in.
> 2015-02-13 10:33:05.661 SYST
< 2015-02-13 10:33:05.661 215 Windows_NT
> 2015-02-13 10:33:05.661 FEAT
< 2015-02-13 10:33:05.661 211-Extended features supported:
< 2015-02-13 10:33:05.661 LANG EN*
< 2015-02-13 10:33:05.661 UTF8
< 2015-02-13 10:33:05.661 AUTH TLS;TLS-C;SSL;TLS-P;
< 2015-02-13 10:33:05.661 PBSZ
< 2015-02-13 10:33:05.661 PROT C;P;
< 2015-02-13 10:33:05.661 CCC
< 2015-02-13 10:33:05.661 HOST
< 2015-02-13 10:33:05.661 SIZE
< 2015-02-13 10:33:05.661 MDTM
< 2015-02-13 10:33:05.661 REST STREAM
< 2015-02-13 10:33:05.661 211 END
> 2015-02-13 10:33:05.661 OPTS UTF8 ON
< 2015-02-13 10:33:05.661 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> 2015-02-13 10:33:05.661 PBSZ 0
< 2015-02-13 10:33:05.661 200 PBSZ command successful.
> 2015-02-13 10:33:05.661 PROT P
< 2015-02-13 10:33:05.661 200 PROT command successful.
. 2015-02-13 10:33:05.723 Connected
. 2015-02-13 10:33:05.723 --------------------------------------------------------------------------
. 2015-02-13 10:33:05.723 Using FTP protocol.
. 2015-02-13 10:33:05.723 Doing startup conversation with host.
> 2015-02-13 10:33:05.786 PWD
< 2015-02-13 10:33:05.786 257 "/" is current directory.
. 2015-02-13 10:33:05.848 Changing directory to "/".
> 2015-02-13 10:33:05.848 CWD /
< 2015-02-13 10:33:05.848 250 CWD command successful.
. 2015-02-13 10:33:05.848 Getting current directory name.
> 2015-02-13 10:33:05.848 PWD
< 2015-02-13 10:33:05.848 257 "/" is current directory.
. 2015-02-13 10:33:06.098 Retrieving directory listing...
> 2015-02-13 10:33:06.098 TYPE A
< 2015-02-13 10:33:06.098 200 Type set to A.
> 2015-02-13 10:33:06.098 PASV
< 2015-02-13 10:33:06.098 227 Entering Passive Mode (213,19,167,214,225,233).
> 2015-02-13 10:33:06.098 LIST -a
< 2015-02-13 10:33:06.098 150 Opening ASCII mode data connection.
. 2015-02-13 10:33:21.683 Timeout detected.
. 2015-02-13 10:33:21.683 Could not retrieve directory listing
. 2015-02-13 10:33:21.683 LIST with -a failed, will try pure LIST
. 2015-02-13 10:33:21.745 Connecting to www.com ...
. 2015-02-13 10:33:21.807 Connected with www.com, negotiating TLS connection...
< 2015-02-13 10:33:21.807 220 Microsoft FTP Service
> 2015-02-13 10:33:21.807 AUTH SSL
< 2015-02-13 10:33:21.807 234 AUTH command ok. Expecting TLS Negotiation.
. 2015-02-13 10:33:21.807 Verifying certificate for "External." with fingerprint 7d:e6:79:69:42:aa:b6:40:ca:90:85:c8:cb:03:02:24:31:9e:f2:1d
. 2015-02-13 10:33:21.807 Certificate common name "www.com" matches hostname
. 2015-02-13 10:33:21.807 Certificate for "External." matches cached fingerprint
. 2015-02-13 10:33:21.807 Using TLSv1, cipher TLSv1/SSLv3: AES256-SHA, 2048 bit RSA
. 2015-02-13 10:33:21.870 TLS connection established. Waiting for welcome message...
> 2015-02-13 10:33:21.870 USER UserName
< 2015-02-13 10:33:21.870 331 Password required for UserName.
> 2015-02-13 10:33:21.870 PASS **********
< 2015-02-13 10:33:21.870 230 User logged in.
> 2015-02-13 10:33:21.870 SYST
< 2015-02-13 10:33:21.870 215 Windows_NT
> 2015-02-13 10:33:21.870 FEAT
< 2015-02-13 10:33:21.870 211-Extended features supported:
< 2015-02-13 10:33:21.870 LANG EN*
< 2015-02-13 10:33:21.870 UTF8
< 2015-02-13 10:33:21.870 AUTH TLS;TLS-C;SSL;TLS-P;
< 2015-02-13 10:33:21.870 PBSZ
< 2015-02-13 10:33:21.870 PROT C;P;
< 2015-02-13 10:33:21.870 CCC
< 2015-02-13 10:33:21.870 HOST
< 2015-02-13 10:33:21.870 SIZE
< 2015-02-13 10:33:21.870 MDTM
< 2015-02-13 10:33:21.870 REST STREAM
< 2015-02-13 10:33:21.870 211 END
> 2015-02-13 10:33:21.870 OPTS UTF8 ON
< 2015-02-13 10:33:21.870 200 OPTS UTF8 command successful - UTF8 encoding now ON.
> 2015-02-13 10:33:21.870 PBSZ 0
< 2015-02-13 10:33:21.870 200 PBSZ command successful.
> 2015-02-13 10:33:21.870 PROT P
< 2015-02-13 10:33:21.870 200 PROT command successful.
. 2015-02-13 10:33:21.932 Connected
. 2015-02-13 10:33:21.932 Doing startup conversation with host.
> 2015-02-13 10:33:21.995 PWD
< 2015-02-13 10:33:21.995 257 "/" is current directory.
. 2015-02-13 10:33:22.057 Changing directory to "/".
> 2015-02-13 10:33:22.057 CWD /
< 2015-02-13 10:33:22.057 250 CWD command successful.
. 2015-02-13 10:33:22.057 Getting current directory name.
> 2015-02-13 10:33:22.057 PWD
< 2015-02-13 10:33:22.073 257 "/" is current directory.
. 2015-02-13 10:33:22.119 Startup conversation with host finished.
. 2015-02-13 10:33:22.353 Retrieving directory listing...
> 2015-02-13 10:33:22.353 TYPE A
< 2015-02-13 10:33:22.353 200 Type set to A.
> 2015-02-13 10:33:22.353 PASV
< 2015-02-13 10:33:22.353 227 Entering Passive Mode (213,19,167,214,225,234).
> 2015-02-13 10:33:22.353 LIST
< 2015-02-13 10:33:22.353 150 Opening ASCII mode data connection.
. 2015-02-13 10:33:37.907 Timeout detected.
. 2015-02-13 10:33:37.907 Could not retrieve directory listing
* 2015-02-13 10:33:38.079 (EFatal) **Lost connection.**
* 2015-02-13 10:33:38.079 Timeout detected.
* 2015-02-13 10:33:38.079 Could not retrieve directory listing
* 2015-02-13 10:33:38.079 Error listing directory '/'.

Kindly help me in fixing this issue.