[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh forwarding environment variables



on Wed, 03 Dec 2003 01:36:33PM -0800, Vineet Kumar insinuated:
> * Nori Heikkinen (nori@sccs.swarthmore.edu) [031203 13:28]:
> > i'd like to forward a customized environment variable from machine A
> > to machine B, when i connect via ssh.  reading the ssh manpage, it
> > seems that i should be able to create '~/.ssh/environment' containing
> > 'MYVARIABLE=foo' on machine A, and then, upon ssh'ing to machine B,
> > 'echo $MYVARIABLE' should print out 'foo'.
> > 
> > but it doesn't.  am i missing something?  i can't see anything
> > relevant on the sshd manpage, so i don't think i need to do anything
> > to the sshd config on machine B.
> 
>      PermitUserEnvironment
>              Specifies whether ~/.ssh/environment and environment= options in
>              ~/.ssh/authorized_keys are processed by sshd.  The default is
>              ???no???.  Enabling environment processing may enable users to bypass
>              access restrictions in some configurations using mechanisms such
>              as LD_PRELOAD.
> 
> -- sshd_config(5)

hm, not in mine ... but i tried it anyhow, and got:

orange:~# /etc/init.d/ssh restart
/etc/ssh/sshd_config: line 72: Bad configuration option: PermitUserEnvironment
/etc/ssh/sshd_config: terminating, 1 bad configuration options

there appears to be nothing like that in my sshd_config manpage.  i'm
running ssh v3.4p1-4.

thanks again,

</nori>

-- 
    .~.      nori @ sccs.swarthmore.edu
    /V\  http://www.sccs.swarthmore.edu/~nori/jnl/
   // \\          @ maenad.net
  /(   )\       www.maenad.net
   ^`~'^
*------------------------------------------------------------------------*
* http://www.aidsmarathon.com/participant.asp?runner=DCNO-3267&year=2003 *
*------------------------------------------------------------------------*
*           Please help me raise money for AIDS as I train for           *
*                  the Whitman-Walker AIDS Marathon!                     *
*------------------------------------------------------------------------*

Attachment: pgpEKV219Wjr6.pgp
Description: PGP signature


Reply to: