Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-Id: <5.1.0.14.2.20011107130247.00b38330@mail.biapo.com>
X-Sender: biapo7@mail.biapo.com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Wed, 07 Nov 2001 15:29:53 -0500
To: cygwin <cygwin@cygwin.com>
From: rotaiv <rotaiv@biapo.com>
Subject: ncftp via ssh tunnel
In-Reply-To: <20011107175934.B2965@cygbert.vinschen.de>
References: <03256AFD.0062206B.00@gw-smtp.serasa.com.br>
 <03256AFD.0062206B.00@gw-smtp.serasa.com.br>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed

I am trying to use ncftp to tunnel through an SSH session with no 
luck.  This is what I am doing:

<bash session 1>
$ ssh -L 21:ftpserver:21 -l user -N ftpserver

<bash session 2>
$ ncftp -u user localhost
ncftp > set passive on
ncftp > dir

The ncftp session connects, enters passive mode but hangs when I do a 
directory listing.  When I look at the logs on the ftpserver, it shows the 
client entering passive mode then nothing else.  Eventually, I will get a 
"Data connection timed out" error with ncftp.

CuteFTP in passive mode works just fine and will connect to the remote FTP 
server using localhost and the ssh tunnel.  If I try it on a Linux box, the 
ncftp client also connects but gives me a "connect failed: Invalid 
argument" when I try to do a directory listing.  Obviously, I am missing 
something hear so any help would be appreciated.

In case it is important, the ftp server is "Serv-U 3.0" running on NT 4 SP 6a.

Regards,

rotaiv


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

