Date: Wed, 8 Nov 2006 14:25:46 -0500 From: John Nielsen <lists@jnielsen.net> To: freebsd-questions@freebsd.org Cc: Gorobets Igor <igoryan@wheel.kiev.ua> Subject: Re: ftp over ssh Message-ID: <200611081425.46932.lists@jnielsen.net> In-Reply-To: <200611081412.18966.lists@jnielsen.net> References: <20061108094550.GA26361@mail.it-geeks.kiev.ua> <200611081412.18966.lists@jnielsen.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 08 November 2006 14:12, John Nielsen wrote: > On Wednesday 08 November 2006 04:45, Gorobets Igor wrote: > > Hello. How correctly to adjust this miracle? :-) > > Assuming you have a server that is running sshd (on all interfaces) and > ftpd (only on the loopback interface): > > ftpclient# ssh -fnN -l 20:localhost:20 -L 21:localhost:21 user@ftpserver > ftpclient# ftp localhost > ftp> passive Typo above, -l should be -L. Also, it turns out this doesn't work beyond getting logged in without also specifying a specific range of "passive ports" for the ftp server to use and forwarding those through ssh as well. So as others have said, you're probably better off using sftp and/or scp, or setting up a true VPN if you're tied to traditional FTP for some reason. JN
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611081425.46932.lists>