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

Re: gui works, console times out

techstress wrote:

winscp> CALL PASV
227 Entering Passive Mode (38,113,1,181,134,48)

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.
techstress

passive

passive switch for console works


open ftp://user@ftp.nope.com -passive
techstress

gui works, console times out

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

--------------------------------------------------------------------------

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
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>