I tried a number of approaches to implementing ssh:.  I finally settled on
the following:

(1) Run the "ssh" command using system() to get a shell on the remote
system.
(2) Send an "echo" command and get the reply.  Hopefully this will move
past the welcome banner.
(3) Run "fossil http" on the remote side.
(4) Start sending HTTP requests from the local side to the remote, and
accepting replies back.
(5) After the last reply is received, shut down the SSH pipe.

All of the above is pretty fragile based on what flavor of SSH you are
running locally and on the remote, what kind of banner messages are issued
by the remote, how the various SSH implementations handle password
management and authentication, quirks and idiosyncrasies of both systems
and their SSH implementation, etc.  It works in many instances, but it is
brittle and there are still issues.

If you have a non-working scenario and can suggest changes to make the
system more robust, then please contribute.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to