ncftp via ssh tunnel

rotaiv rotaiv@biapo.com
Fri Nov 9 11:36:00 GMT 2001


(I haven't seen this message or any replies come through so I apologize if 
this is a duplicate)

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/



More information about the Cygwin mailing list