* Nori Heikkinen (nori@sccs.swarthmore.edu) [031203 13:56]: > on Wed, 03 Dec 2003 01:36:33PM -0800, Vineet Kumar insinuated: > > PermitUserEnvironment > > > > -- 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. Sorry, my bad. 3.6.1 here. Anyway, I think your understanding of ~/.ssh/environment is incorrect (though I may be wrong; I've never used this particular feature). I belive that ~/.ssh/environment is read by sshd on the server. Does it work if you have MYVAR=foo in ~/.ssh/environment on the remote system? I don't think the local file ~/.ssh/environment matters at all. I can see how the manpage (at least in this version) infers that the contents of the local environment file are inserted into the environment in the remote session, but I don't think that's how it really works. The sshd manpage spells it out in the way I would have guessed it would work. If I'm right about this (I haven't tested it at all) a bug should be filed against ssh for the poor explanation of environment in the ssh(1) manpage. good times, Vineet -- http://www.doorstop.net/ -- One nation, indivisible, with equality, liberty, and justice for all.
Attachment:
signature.asc
Description: Digital signature