Right, thanks for the help, but the problems persist. I think the problem
is on the ftp side rather than the ssh side:
foo% ssh -L 1234:bar:21 bar
then
foo% ftp localhost 1234
fwd connect from localhost to local port sshdfwd-1234
Connected to localhost.
220 bar FTP server (SunOS 5.7) ready.
Name (localhost:phurvitz):
331 Password required for phurvitz.
Password:
230 User phurvitz logged in.
ftp> ls
200 PORT command successful.
425 Can't build data connection: Connection refused.
ftp> quote PASV
227 Entering Passive Mode (128,95,36,121,150,228)
ftp> ls
200 PORT command successful.
425 Can't build data connection: Connection refused.
I'm using vanilla Solaris 7 ftpd. Though this is a listserv for ssh,
perhaps someone can help me with the ftp setup?
Thanks!
-P.
******************************************************************************
Phil Hurvitz, MFR | GIS Specialist | College of Forest Resources | 355 Bloedel
Box 352100 | University of Washington, Seattle, Washington 98195-2100, USA
tel: 206.685.8179 | FAX: 206.685.3091 | e-mail: [EMAIL PROTECTED]
WWW: http://lobo.cfr.washington.edu/~phurvitz/
******************************************************************************
On Thu, 1 Jun 2000, Mike Friedman wrote:
> On Thu Jun 1 14:19:23 2000, Phil Hurvitz said:
>
> > I initiate ssh2 with port forwarding:
> >
> > foo% ssh -L 1234:bar:21 foo
> >
> > Which I take to mean this: "create an ssh session between foo and foo, but
> > forward foo's port 1234 to bar's ftp port." I shoul;d be able to ftp to
> > foo's local 1234 and actually be connected to bar's ftp, right?
>
> Not quite. You should be making your ssh connection to bar; that's the only
> way SSH is going to be able to forward anything to bar. E.g.,
>
> foo% ssh -L 1234:bar:21 bar
>
> Then, if you ftp to localhost 1234 you might get it to work. But it may
> not work anyway, because you may have to use PASV mode and your ftp client
> or server might not support that. There are several issues involved, but
> at least try the above first.
>
> Mike
>
> ----------------------------------------------------------------------------
> Mike Friedman [EMAIL PROTECTED]
> Communication & Network Services +1-510-642-1410
> University of California at Berkeley http://ack.Berkeley.EDU/~mikef
> ----------------------------------------------------------------------------
>