Billy Holmes wrote:

Steve [Gentoo] wrote:

Can anyone see where I'm going wrong.

I'm behind a NAT box which precludes my use of active-FTP but not passive. I have verified this both with Windows based FTP clients and with the latest unmasked "vanilla" ftp from portage. When I try to use ncftp, however, I run into difficulties:


I think you need to set passive on before you do any data transfers. I know that with my copy, ncftp will hang while waiting on a active transfer to finish. I normally have to terminate the program (CTRL-Z ; jobs -l ; kill $PID). However, I've been able to set the passive option before I've transfered any files.

You can also try "wget" if you know the file path, and just want to retreive a file.

As far as I can tell I tried to enable passive mode before transferring any files. In the example I posted I called "set passive on" before I called "open ..." - I also tired setting passive on in the preferences file - which should have ensured that passive was on as soon as the process started. Both of these fail for me.

I can't use wget - because I want to put files... I can use the classic "ftp" program (which works fine is passive mode) - however I dislike the user interface... ncftp worked fine for me in the past...

I've discovered that ncftp keeps "trace" files - this is what it shows

--
SESSION STARTED at:  2005-08-10 11:31:26 BST +0100
  Program Version:  NcFTP 3.1.8/167 Jul 27 2004, 03:31 PM
  Library Version:  LibNcFTP 3.1.8 (May 26, 2004)
       Process ID:  388
         Platform:  linux-x86
         Hostname:  gifu.shic.lan  (rc=3)
         Terminal:  cygwin
11:31:26 Fw: firewall.shic.lan Type: 0 User: sjh Pass: ******** Port: 21
11:31:26  FwExceptions: .shic.lan,localhost,localdomain
11:31:31  > set passive on

11:31:40  > open ftp.mirror.ac.uk

11:31:40  Resolving ftp.mirror.ac.uk...
11:31:40  Connecting to ftp.mirror.ac.uk...
11:31:40  LibNcFTP 3.1.8 (May 26, 2004) compiled for linux-x86
11:31:40 Uname: Linux|gifu|2.6.9-gentoo-r1|#5 Sat Apr 2 18:05:01 BST 2005|i686
11:31:40  Glibc: 2.3.5 (stable)
11:31:41  Logging in...
11:31:41  220: Welcome to the JISC National Mirror Service.
11:31:41
11:31:41 To discover more about the service, please visit: http://www.mirr
or.ac.uk/
11:31:41
11:31:41 The service is funded by HEFCE via the Joint Information Systems
Committee
11:31:41 (JISC) and is intended to support the UK academic community with
a portfolio of
11:31:41 useful technical mirrors directly on the Joint Academic Network (
JANET).
11:31:41
11:31:41 We welcome your feedback on the current service and suggestions f
or new
11:31:41       mirrors. Please contact us via [EMAIL PROTECTED]
11:31:41
11:31:41
11:31:41  Connected to ftp.mirror.ac.uk.
11:31:41  Cmd: USER anonymous
11:31:41  331: Please specify the password.
11:31:41  Cmd: PASS NcFTP@
11:31:41  Logging in...
11:31:41  230: Login successful.
11:31:41  Cmd: PWD
11:31:41  257: "/"
11:31:41  Logged in to ftp.mirror.ac.uk as anonymous.
11:31:41  Cmd: FEAT
11:31:41  211: Features:
11:31:41        EPRT
11:31:41        EPSV
11:31:41        MDTM
11:31:41        PASV
11:31:41        REST STREAM
11:31:41        SIZE
11:31:41        TVFS
11:31:41       End
11:31:41  Cmd: HELP SITE
11:31:41  214: The following commands are recognized.
11:31:41 ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM
MKD
11:31:41 MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD
RNFR
11:31:41 RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD
XMKD
11:31:41        XPWD XRMD
11:31:41       Help OK.
11:31:41  Logged in to ftp.mirror.ac.uk.
11:31:41  Cmd: CLNT NcFTP 3.1.8 linux-x86
11:31:41  500: Unknown command.
11:31:43  > ls

11:31:43  Cmd: EPSV
11:31:43  229: Entering Extended Passive Mode (|||48795|)
11:32:03  Data connection timed out.
11:32:03  Cmd: LIST
11:33:03  425: Failed to establish connection.
11:33:03  >

11:33:27  Cmd: QUIT
11:33:27  221: Goodbye.
SESSION ENDED at:    Wed Aug 10 11:33:27 2005
--

Steve



--
gentoo-user@gentoo.org mailing list

Reply via email to