Re: Can't get ssh and wu-ftpd to work together
From: David Efflandt (efflandt_at_xnet.com)
Date: Mon, 27 Oct 2003 06:39:10 +0000 (UTC)
On Sun, 26 Oct 2003, Richard Brandt <firstname.lastname@example.org> wrote:
> I am trying to follow the example in the "SSH-The Secure Shell" book for
> tunneling the control channel thru ssh.
> I setup the initial tunnel per the example
> client% ssh -L2001:server:21 server
> This works fine
> client% ftp -vd localhost 2001
> This also works fine (login has no problems)
> but when I try to do any commands like "ls" it fails with
> ftp:setsockopt (ignored ): permission denied
> ---> PASV
> Entering passive mode(192,168,1,50,232,45)
> ftp:connect: Connection refused
You tunnel to the server, but have no -R tunnel coming back for ftp-data.
But since you do not know what port passive mode would use, you would
likely need to do a -R tunnel for the normal ftp-data port (20), but you
would have to ssh as root on the server to do that.
You could configure the ftp server to use high ports (> 1024) so ssh
tunnel could be done as a normal user (the ftp-data port would be the port
under the ftp port). Or if all else fails, ssh to server, ftp file to
server, scp file back to you.
-- David Efflandt - All spam ignored http://www.de-srv.com/ http://www.autox.chicago.il.us/ http://www.berniesfloral.net/ http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/