Topic "gui works, console times out"

Author Message
techstress

Guest


we are behind a router implementing nat

GUI will not connect if passive mode is off

GUI will show directory listing if passive mode turned on

console connects, enters pasv mode, times out when try to retreive a directory listing (ls)


Anyone know what I can try to get the console to work?



GUI log window

Code:

--------------------------------------------------------------------------
WinSCP Version 4.1.7 (Build 413) (OS 5.1.2600 Service Pack 3)
Login time: Wednesday, November 12, 2008 10:01:20 AM
--------------------------------------------------------------------------
Session name: user@FTP.nope.COM
Host name: FTP.nope.COM (Port: 21)
User name: user (Password: Yes, Key file: No)
Tunnel: No
Transfer Protocol: FTP
Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
Proxy: none
FTP: Passive: Yes
Local directory: default, Remote directory: home, Update: No, Cache: Yes
Cache directory changes: Yes, Permanent: Yes
DST mode: 1
--------------------------------------------------------------------------
Connecting to FTP.nope.COM ...
Connected with FTP.nope.COM. Waiting for welcome message...
220 FTP Server ready
USER user
331 Password required for user
PASS **********
230 User user logged in
SYST
215 UNIX Type: L8
FEAT
211-Features:
 MDTM
 REST STREAM
 SIZE
211 End
Connected
--------------------------------------------------------------------------
Using FTP protocol.
Doing startup conversation with host.
PWD
257 "/" is the current directory
Getting current directory name.
Retrieving directory listing...
TYPE A
200 Type set to A
PASV
227 Entering Passive Mode (38,113,1,181,159,9)
LIST -a
150 Opening ASCII mode data connection for file list
226 Transfer complete
Directory listing successful
Startup conversation with host finished.


console output
Code:

winscp> open ftp://user@ftp.nope.com
Prompting for credentials...
Password:
Connecting to ftp.nope.com ...
Connected with ftp.nope.com. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] user@ftp.nope.com
winscp> CALL PASV
227 Entering Passive Mode (38,113,1,181,134,48)
winscp> LS
Lost connection.
Timeout detected.
Could not retrieve directory listing
PORT command successful
Error listing directory '/'.
Session 'user@ftp.nope.com' closed.
No session.
winscp>
techstress

Guest


passive switch for console works


open ftp://user@ftp.nope.com -passive
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
techstress wrote:
winscp> CALL PASV
227 Entering Passive Mode (38,113,1,181,134,4Cool

You cannot switch to passive mode this way. WinSCP does not try to understand commands you send to FTP server using "call" command. So what happens is that you enable passive mode on the server, but WinSCP stays in active mode. So they cannot talk to each other anymore.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License