From: "Steve [Gentoo]" <gentoo_steve@shic.co.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] NCFTP in passive mode...
Date: Wed, 10 Aug 2005 11:36:24 +0100 [thread overview]
Message-ID: <42F9D8A8.6070105@shic.co.uk> (raw)
In-Reply-To: <42F8F5B1.9060903@gonoph.net>
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
next prev parent reply other threads:[~2005-08-10 10:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-09 16:23 [gentoo-user] NCFTP in passive mode Steve [Gentoo]
2005-08-09 18:28 ` Billy Holmes
2005-08-10 10:36 ` Steve [Gentoo] [this message]
2005-08-11 17:00 ` Billy Holmes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42F9D8A8.6070105@shic.co.uk \
--to=gentoo_steve@shic.co.uk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox