[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: SSH kioslave
From:       Jörg Walter <ehrlich () ich ! bin ! kein ! hoschi ! de>
Date:       2001-10-10 21:38:27
[Download RAW message or body]

On Wednesday 10 October 2001 19:35, Lucas Fisher wrote:
> We seem to have a plethera of ssh ioslaves. :)  I wrote a sftp ioslave over

Only none worked until Saturday, when I began coding this one. Or they were 
hiding cleverly. kio_fish works, and I am confident enough to call it 1.0, 
both feature- and bug-wise. (Please, do send bug reports or simple "it works")
Moreover, FISH is not sftp. FISH is no protocol at all, but using dd, cat, 
rm, mv, cp, grep, ls, ... to do all filesystem management tasks. I even want 
try to use rsync for better performance, dunno yet if it is possible. 
Basically, even if you're stuck with some obscure web server O/S and no admin 
privileges, you can still work fine.

> the summer and it's currently in cvs (kdebase/ioslaves/sftp). I'm thinking
> we can integrate our efforts.

Might be, it should be easy to nick my subprocess code. It is not PtyProcess 
but some selfmade (and self-copied from konsole ;) stuff, which should even 
work on cygwin, since it doesn't depend on pty's being available, falling 
back to a socketpair instead. You lose password authentication this way, but 
via ssh-agent you can still work.
Since like some others I made the mistake to use KProcess in the beginning, 
the code is event driven and 'feels' as if it were still using KProcess, 
being completely asynchronously.

> ssh and the ioslave.  I have a class called ksshprocess that detects the
> version of ssh installed and the modifies ssh options specified by the user

Using rlogin and telnet is high up on my todo list, the code is already 
prepared for different command lines. On a local network, it might be 
preferrable not to use encryption for speed reasons. What I had in mind was a 
selection via fish://.../?login=rlogin, selecting one out of a set of 
profiles. The default profile would be detected at configure time, thus being 
able to support wide ranges of differing remote shells.

> I'm going to try out your code, but probably not til this weekend.  I have
> to get ready to a demo a visual basic project tomorrow (yuk!).


>
> Lucas
>
> Jörg Walter wrote:
> > Hi!
> >
> > Many people asked and searched for it, me too, and after hours of
> > futile searching, I did such a thing myself, and it actually works! ;)
> >
> > kio_fish implements the FISH protocol, as seen in Midnight Commander's
> > #sh VFS handler. This is basically shell-over-ssh access, only that it is
> > possible to provide a dedicated server on the remote machine to speed
> > things up. (Though my tests show no immediate need for that.)
> >
> > kio_fish works with any remote OS, as long as it has a bourne style
> > /bin/sh (bash is fine, a real bourne shell works, too) available (need
> > not be login shell) and
> > has a set of common UNIX utilities.
> > By now it should be stable, it was tested on several types of remote
> > machines with lots of stuff done (reorganizing remote home directories,
> > editing web server files, up/downloading large files).
> > It is full-featured, even thumbnail previews work like locally (if remote
> > mime type detection is possible, see README). All KIO::SlaveBase methods
> > are implemented, only resume is still on the TODO list. Password queries
> > and "host key not found. are you sure you want...?" queries are passed on
> > to the user.
> > Speed is great, on slow links (128kbit/s) it is faster than NFS - unless
> > you are uploading (still working on that problem). If the remote machine
> > runs at more than 300MHz, a 128kbit (compressed) ssh link is saturated.
> > Download/stat/list/... performance is great with any remote machine.
> > On the negative side, it has only been tested with openssh, I have no
> > idea if it works with commercial ssh. Moreover, it might not compile
> > out-of-the-box on non-Linux systems, patches welcome. Success reports
> > welcome, too ;)
> >
> > The first release can be found here:
> > http://ich.bin.kein.hoschi.de/fish/
> >
> > Btw, I think this would make a nice addition to kdebase or kdenetwork. If
> > anyone wants to add it, e.g. to the kioslaves collection, just go ahead.
> >
> > --
> > CU
> >         Joerg
> >
> > PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
> > PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94
> >
> > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> > >> unsubscribe <<
> >>
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<

-- 
CU
	Joerg

PGP Public Key at http://ich.bin.kein.hoschi.de/~trouble/public_key.asc
PGP Key fingerprint = D34F 57C4 99D8 8F16 E16E  7779 CDDC 41A4 4C48 6F94
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic