[Bug 1158] Setting the environment in authorized_keys does not work

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Feb 16 09:08:18 EST 2006


http://bugzilla.mindrot.org/show_bug.cgi?id=1158


michael.henry at axegroup.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from michael.henry at axegroup.com.au  2006-02-16 09:08 -------

Thanks for the prompt reply Darren!

I do have: PermitUserEnvironment yes

You make a very good point about login scripts setting the LOGNAME variable.
Let me just check...

Ha! /etc/profile has: LOGNAME=$USER

Now for the final point - multiple "environment" entries. I see you have a
comma-separated list. As per the man-page I was using spaces to separate my
entries: "Each RSA public key consists of the following fields, separated by
spaces: options, bits, exponent, modulus, comment."

So I had:

environment="LOGNAME=mhenry" environment="CVSUSER=mhenry" ssh-dss AAAAB3N....

Let me just change that space to a comma... WooHoo! That's done it!

Thanks for your help!




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list