Unable to List Remote Directoy

Advertisement

kiteboy
Joined:
Posts:
1
Location:
UK

Unable to List Remote Directoy

Hi all
Using WinSCP in a work environment and our FTP supplier switched servers the other day. Ever since then it's playing up.

Works fine on personal laptop but in the work enviro we can't read the directory listing. We used to connect with no encryption – now we have to have explicit TLS enabled but then it can't read any directory then.
I suspect firewall issue somewhere though but not sure.

But can you see anything obvious in the logs below and also thanks for any pointers
. 2024-05-26 20:35:34.728 Transfer Protocol: FTP
. 2024-05-26 20:35:34.728 Ping type: Dummy, Ping interval: 30 sec; Timeout: 20 sec
. 2024-05-26 20:35:34.728 Disable Nagle: No
. 2024-05-26 20:35:34.728 Proxy: None
. 2024-05-26 20:35:34.728 Send buffer: 262144
. 2024-05-26 20:35:34.728 UTF: Auto
. 2024-05-26 20:35:34.728 FTPS: Explicit TLS/SSL [Client certificate: No]
. 2024-05-26 20:35:34.728 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Off]; HOST: Auto
. 2024-05-26 20:35:34.728 Session reuse: Yes
. 2024-05-26 20:35:34.728 TLS/SSL versions: TLSv1.1-TLSv1.3
. 2024-05-26 20:35:34.728 Local directory: D:\, Remote directory: /, Update: Yes, Cache: Yes
. 2024-05-26 20:35:34.728 Cache directory changes: Yes, Permanent: Yes
. 2024-05-26 20:35:34.728 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2024-05-26 20:35:34.728 Timezone offset: 0h 0m
. 2024-05-26 20:35:34.728 --------------------------------------------------------------------------
. 2024-05-26 20:35:34.744 Session upkeep
. 2024-05-26 20:35:34.775 Connecting to ######################...
. 2024-05-26 20:35:34.775 Connected with ######################, negotiating TLS connection...
< 2024-05-26 20:35:34.791 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 2024-05-26 20:35:34.791 220-You are user number 6 of 50 allowed.
< 2024-05-26 20:35:34.791 220-Local time is now 21:35. Server port: 21.
< 2024-05-26 20:35:34.791 220-This is a private system - No anonymous login
< 2024-05-26 20:35:34.791 220-IPv6 connections are also welcome on this server.
< 2024-05-26 20:35:34.791 220 You will be disconnected after 15 minutes of inactivity.
> 2024-05-26 20:35:34.791 AUTH TLS
< 2024-05-26 20:35:34.791 234 AUTH TLS OK.
. 2024-05-26 20:35:34.838 Verifying certificate for "" with fingerprint ############################## and 20 failures
. 2024-05-26 20:35:34.838 Certificate common name "layerip.com" does not match hostname
. 2024-05-26 20:35:34.838 Certificate subject alternative name "layerip.com" does not match hostname
. 2024-05-26 20:35:34.838 Certificate subject alternative name "*.cloudabove.com" does not match hostname
. 2024-05-26 20:35:34.838 Certificate subject alternative name "*.hostsvr.net" does not match hostname
. 2024-05-26 20:35:34.838 Certificate subject alternative name "*.layerip.com" does not match hostname
. 2024-05-26 20:35:34.838 Certificate subject alternative name "*.uk.fi.net.uk" does not match hostname
. 2024-05-26 20:35:34.838 Certificate subject alternative name "*.uk.mypremiumserver.com" does not match hostname
. 2024-05-26 20:35:34.838 Certificate for "" matches cached fingerprint and failures
. 2024-05-26 20:35:34.838 Using TLSv1.3, cipher TLSv1.3: TLS_AES_256_GCM_SHA384, 2048 bit RSA, TLS_AES_256_GCM_SHA384  TLSv1.3 Kx=any      Au=any  Enc=AESGCM(256) Mac=AEAD
. 2024-05-26 20:35:34.869 TLS connection established. Waiting for welcome message...
> 2024-05-26 20:35:34.869 USER ##########################################
< 2024-05-26 20:35:34.869 331 User ############################## OK. Password required
> 2024-05-26 20:35:34.869 PASS ************
< 2024-05-26 20:35:34.885 230 OK. Current restricted directory is /
> 2024-05-26 20:35:34.885 SYST
< 2024-05-26 20:35:34.885 215 UNIX Type: L8
> 2024-05-26 20:35:34.885 FEAT
< 2024-05-26 20:35:34.885 211-Extensions supported:
< 2024-05-26 20:35:34.885  UTF8
< 2024-05-26 20:35:34.885  EPRT
< 2024-05-26 20:35:34.885  IDLE
< 2024-05-26 20:35:34.916  MDTM
< 2024-05-26 20:35:34.916  SIZE
< 2024-05-26 20:35:34.931  MFMT
< 2024-05-26 20:35:34.931  REST STREAM
< 2024-05-26 20:35:34.931  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2024-05-26 20:35:34.931  MLSD
< 2024-05-26 20:35:34.931  PRET
< 2024-05-26 20:35:34.931  AUTH TLS
< 2024-05-26 20:35:34.931  PBSZ
< 2024-05-26 20:35:34.931  PROT
< 2024-05-26 20:35:34.931  TVFS
< 2024-05-26 20:35:34.931  ESTA
< 2024-05-26 20:35:34.931  PASV
< 2024-05-26 20:35:34.931  EPSV
< 2024-05-26 20:35:34.931  ESTP
< 2024-05-26 20:35:34.931 211 End.
> 2024-05-26 20:35:34.931 OPTS UTF8 ON
< 2024-05-26 20:35:34.931 504 Unknown command
> 2024-05-26 20:35:34.931 PBSZ 0
< 2024-05-26 20:35:34.931 200 PBSZ=0
> 2024-05-26 20:35:34.931 PROT P
< 2024-05-26 20:35:34.931 200 Data protection level set to "private"
. 2024-05-26 20:35:34.931 Session upkeep
. 2024-05-26 20:35:34.947 Connected
. 2024-05-26 20:35:34.947 Got reply 1 to the command 1
. 2024-05-26 20:35:34.947 --------------------------------------------------------------------------
. 2024-05-26 20:35:34.947 Using FTP protocol.
. 2024-05-26 20:35:34.947 Doing startup conversation with host.
> 2024-05-26 20:35:34.963 PWD
< 2024-05-26 20:35:34.963 257 "/" is your current location
. 2024-05-26 20:35:34.963 Got reply 1 to the command 16
. 2024-05-26 20:35:34.963 Changing directory to "/".
> 2024-05-26 20:35:34.963 CWD /
< 2024-05-26 20:35:34.978 250 OK. Current directory is /
. 2024-05-26 20:35:34.978 Got reply 1 to the command 16
. 2024-05-26 20:35:34.978 Getting current directory name.
> 2024-05-26 20:35:34.978 PWD
< 2024-05-26 20:35:34.978 257 "/" is your current location
. 2024-05-26 20:35:34.978 Got reply 1 to the command 16
. 2024-05-26 20:35:35.041 Retrieving directory listing...
> 2024-05-26 20:35:35.041 TYPE A
< 2024-05-26 20:35:35.041 200 TYPE is now ASCII
> 2024-05-26 20:35:35.041 PASV
< 2024-05-26 20:35:35.041 227 Entering Passive Mode (194,110,243,35,234,215)
> 2024-05-26 20:35:35.041 MLSD
. 2024-05-26 20:35:35.041 Connecting to #######################:60119 ...
. 2024-05-26 20:35:55.808 Timeout detected. (data connection)
. 2024-05-26 20:35:55.808 Could not retrieve directory listing
. 2024-05-26 20:35:55.808 Got reply 1004 to the command 2
* 2024-05-26 20:35:55.886 (EFatal) **Lost connection.**
* 2024-05-26 20:35:55.886 Timeout detected. (data connection)
* 2024-05-26 20:35:55.886 Could not retrieve directory listing
* 2024-05-26 20:35:55.886 Error listing directory '/'. 

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,852
Location:
Prague, Czechia

Re: Unable to List Remote Directoy

It's indeed possible that your firewall/NAT is blocking/not translating the data connection ports (60119 in this case, but there's for sure a range of ports in use, not just this one).

Without encryption, the ports might have been automatically opened/translated as needed.

See https://winscp.net/eng/docs/ftp_modes#smart

Reply with quote

Advertisement

You can post new topics in this forum