From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E2o14-0007bu-Em for garchives@archives.gentoo.org; Wed, 10 Aug 2005 10:40:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7AAdR0C007332; Wed, 10 Aug 2005 10:39:27 GMT Received: from mail.shic.lan (adsl.195-248-105-109.dial.hot.broadband.adsl.broadbandonly.co.uk [195.248.105.109]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7AAZogU025811 for ; Wed, 10 Aug 2005 10:35:51 GMT Received: from [127.0.0.1] (localhost [127.0.0.1]) by mail.shic.lan (Postfix) with ESMTP id 0C56F16B3 for ; Wed, 10 Aug 2005 11:36:26 +0100 (BST) Message-ID: <42F9D8A8.6070105@shic.co.uk> Date: Wed, 10 Aug 2005 11:36:24 +0100 From: "Steve [Gentoo]" User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] NCFTP in passive mode... References: <42F8D898.7010305@shic.co.uk> <42F8F5B1.9060903@gonoph.net> In-Reply-To: <42F8F5B1.9060903@gonoph.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 4453eefe-bee0-4628-8d0e-521e3777ccac X-Archives-Hash: 59f72722f2510e911123e0e2b5951f01 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 mirrorsupport@mirror.ac.uk 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