OpenSSH
[Top] [All Lists]

Re: Client options to server

To: dtucker@zip.com.au
Subject: Re: Client options to server
From: "Vincenzo Sciarra" <vincenzo.sciarra@gmail.com>
Date: Mon, 13 Nov 2006 19:01:01 +0100
Cc: openssh-unix-dev@mindrot.org
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: openssh-unix-dev@mindrot.org
In-reply-to: <199b4dc20611120737m11acd84dj31c8457d0059ffb@mail.gmail.com>
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
References: <199b4dc20611120035y7674f067g11b6c4262644fbb5@mail.gmail.com> <20061112092317.GA24196@gate.dtucker.net> <199b4dc20611120128p61f36d74xb8031a911f6df389@mail.gmail.com> <20061112094204.GA24800@gate.dtucker.net> <199b4dc20611120149j301f1217y82a7f0266c1db5fa@mail.gmail.com> <20061112104248.GA25640@gate.dtucker.net> <199b4dc20611120737m11acd84dj31c8457d0059ffb@mail.gmail.com>
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
How can pass a argument from client to server?

More explicit :

ssh -K www.foo.it/baar server_host

Server will parse the -K argument and will connect to www.foo.it and
get baar for example.
How can I pass the -K argument from client to server?


Thanks



2006/11/12, Vincenzo Sciarra <vincenzo.sciarra@gmail.com>:
> 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@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
>


-- 
Vincenzo Sciarra
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>