On Sun, Nov 12, 2006 at 09:42:48PM +1100, Darren Tucker wrote:
> On Sun, Nov 12, 2006 at 10:49:47AM +0100, Vincenzo Sciarra wrote:
> > Very cool.
> >
> > Thanks!!!!!!
> >
> > If I want to modify the code, how I can do equivalent of SendEnv and
> > AcceptEnv?

>
> On the server side, just set AcceptEnv in the config file and use the
> environment variable in your program/shell/whatever.


Also, if you wanted to do it in sshd for some reason, you
can add a special-case to the environment handling code in
session.c:session_env_req().

--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev