delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/07/15:28:49

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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019