Client options to server

Vincenzo Sciarra vincenzo.sciarra at gmail.com
Mon Nov 13 02:37:01 EST 2006


I need to modify source code.
I modified options structure in client.

Now I don't know how openssh pass this structure to the server.

How can I modify server?


2006/11/12, Darren Tucker <dtucker at zip.com.au>:
> 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.
>
> On the client side if you really want a command-line option then get your
> directory from getopt() and putenv() it and update options->send_env
> and options->num_send_env (see the oSendEnv case in readconf.c for
> an example).  Are you sure you want to do that, though?  You'll have
> to maintain a modified client.  Alternatively you might just write a
> wrapper script that execs ssh with the appropriate SendEnv option.
>
> --
> 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.
>


-- 
Vincenzo Sciarra


More information about the openssh-unix-dev mailing list