On Mon, May 7, 2012 at 3:23 PM, Richard Hipp <d...@sqlite.org> wrote:

> 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.
>

Thanks for the detailed overview. I'll spend some time debugging with this
in mind. Basically I as understand it now the connection is via std in/out
over ssh and any extraneous output from the shell can break things.

What I'm currently seeing is the following:

chlr11723> fossil clone
ssh://host.com/tmp/mrwellan/blah/fossils/test.fossiltest.fossil
ssh -e none -T host.com
ssh: Reflection for Secure IT 6.1.2.1 (build 3005) on x86_64-suse-linux-gnu
(64-bit)
fossil: ssh connection failed: []

But "ssh host.com ls" works fine. I'll do more digging ....

-- 
> 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
>
>
_______________________________________________
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