Benedict sent this directly to me by mistake, rather than sending it to the list, so I'm forwarding it at his request.
-----Forwarded Message----- > From: Benedict Verheyen <[EMAIL PROTECTED]> > To: ninewands <[EMAIL PROTECTED]> > Subject: Re: Re: using ssh to tunnel a ftp connection > Date: 18 Nov 2002 16:23:55 +0000 > > ------------------------ > ninewands <[EMAIL PROTECTED]> wrote: > ------------------------ > > >On Mon, 2002-11-18 at 06:19, Johann Spies wrote: > >> On Mon, Nov 18, 2002 at 10:20:01AM +0000, Benedict Verheyen wrote: > >> > Hi, > >> > > >> > i have a problem using ssh to tunnel ftp. I tried using it from a > >> > winbox to connect to a linux server running sshd en wu-ftpd. > >> > >> Wouldn't using lftp with the fish protocol eliminate the need of a > >> ssh-tunnel? > >> > >> lftp fish:[EMAIL PROTECTED] > >> > >> Then you don't even need an ftp-server on the other side. > >> > > > >I was thinking in a similar vein but wondering why he doesn't just use > >sftp rather than ftp since, IIRC, the sftp-server subprocess installs > >with the ssh package. > > > >Regards, > > > >ninewands > > > > I'm not using sftp or something similar since the ftp functionality is to be hidden >from the users of the java program. If i use sftp, i cannot for instance, issue a "ls >-la" to get get the directory listing and get that back to the java program. > > I first wanted to use sftp and tried to get a listing like this: > Process p = Runtime.getRuntime().exec( command ); > and then use the getInputStream() function to try to "write" something to the shell >but this doesn't work. > The listing is needed since the user makes a selection in the gui of what kind of >files he/she needs to download. Then the files they have selected are downloaded. So >sftp is not usable. > > Anyway, I already have a working ftp class, it only lacks security. > > >
signature.asc
Description: This is a digitally signed message part