From mboxrd@z Thu Jan 1 00:00:00 1970 From: rotaiv To: cygwin Subject: ncftp via ssh tunnel Date: Fri, 09 Nov 2001 11:36:00 -0000 Message-id: <5.1.0.14.2.20011109143549.00b3b6b0@mail.biapo.com> X-SW-Source: 2001-11.t/msg00552.html (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: $ ssh -L 21:ftpserver:21 -l user -N ftpserver $ 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/