Re: [libssh2] How to set env vars

2008-10-04 Thread Peter Stuge
Paul Thomas wrote: > Ok, that sheds some light on the problem: > debug2: Ignoring env request woot: disallowed name > > So let me guess, there is something I have to enable in the > server's ssh config? Yes, the very first keyword mentioned in sshd_config(5): AcceptEnv //Peter ---

Re: [libssh2] How to set env vars

2008-09-11 Thread Peter Stuge
Paul Thomas wrote: > I don't suppose anyone could throw me a few good web links on the > subject of x11 forwarding and/or ssh tunneling. http://www.ietf.org/rfc/rfc4254.txt 6.3. X11 Forwarding 7. TCP/IP Port Forwarding //Peter ---

Re: [libssh2] How to set env vars

2008-09-11 Thread Paul Thomas
Ok, yeah, this def is NOT a libssh2 problem. Here I started out on this path because I've been trying to figure out how to use the library to get X11 forwarding working... So I've been reading up on x11 forwarding and playing with putty, and noticed that they always have the DISPLAY variable set,

Re: [libssh2] How to set env vars

2008-09-11 Thread Paul Thomas
Ok, that sheds some light on the problem: debug2: Ignoring env request woot: disallowed name So let me guess, there is something I have to enable in the server's ssh config? Paul On Thu, Sep 11, 2008 at 9:33 PM, Peter Stuge <[EMAIL PROTECTED]> wrote: > Paul Thomas wrote: >> How do I enable the

Re: [libssh2] How to set env vars

2008-09-11 Thread Peter Stuge
Paul Thomas wrote: > How do I enable the ssh server to run in debug mode? The SSH version > of my server is: > OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 Stop the normal sshd running as a service, then run: /usr/sbin/sshd -ddd Don't forget to start the service again when you'v

Re: [libssh2] How to set env vars

2008-09-11 Thread Paul Thomas
How do I enable the ssh server to run in debug mode? The SSH version of my server is: OpenSSH_4.7p1 Debian-8ubuntu1.2, OpenSSL 0.9.8g 19 Oct 2007 Paul On Thu, Sep 11, 2008 at 9:21 PM, Peter Stuge <[EMAIL PROTECTED]> wrote: > Paul Thomas wrote: >> The value returned from the function is -1 and t

Re: [libssh2] How to set env vars

2008-09-11 Thread Peter Stuge
Paul Thomas wrote: > The value returned from the function is -1 and the error message is: > Unable to complete request for channel-setenv What does it look like on the server side? Can you run the sshd with debugging enabled? //Peter --

Re: [libssh2] How to set env vars

2008-09-11 Thread Paul Thomas
The value returned from the function is -1 and the error message is: Unable to complete request for channel-setenv Paul On Thu, Sep 11, 2008 at 9:15 PM, Peter Stuge <[EMAIL PROTECTED]> wrote: > Paul Thomas wrote: >> Anyone know how to get an enviornmental variable set through the >> library? Th

Re: [libssh2] How to set env vars

2008-09-11 Thread Peter Stuge
Paul Thomas wrote: > Anyone know how to get an enviornmental variable set through the > library? The doc says to just do: > libssh2_channel_setenv_ex( channelPtr, "variableName_Foo", > "variableValue_Bar"); > But the function always returns -1, failure. I'm getting a valid > channel pointer

[libssh2] How to set env vars

2008-09-11 Thread Paul Thomas
Anyone know how to get an enviornmental variable set through the library? The doc says to just do: libssh2_channel_setenv_ex( channelPtr, "variableName_Foo", "variableValue_Bar"); But the function always returns -1, failure. I'm getting a valid channel pointer help? Paul ---