[Bug 1158] Setting the environment in authorized_keys does not work
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Feb 15 19:33:55 EST 2006
http://bugzilla.mindrot.org/show_bug.cgi?id=1158
------- Comment #1 from dtucker at zip.com.au 2006-02-15 19:33 -------
(In reply to comment #0)
> I have prepended this string to my key in authorized_keys:
> environment="LOGNAME=mhenry" ssh-dss AAAAB3Nz.....
>
> The manpage also suggests that this syntax is supported. However, logging into
> this account using my key I see that the environment is not set:
Have you enabled PermitUserEnvironment in sshd_config? It defaults to "no",
and be aware that it may permit users to monkey around with things like
LD_PRELOAD.
> [cvsstore at axefs1 ~]$ env | grep LOGNAME
> LOGNAME=cvsstore
Do any of the shell startup scripts set LOGNAME? My /etc/profile does but I'm
not sure if it's stock or a local addition.
> Also: using multiple "environment" entries results in the ssh connection
> attempt being rejected.
Now that might be a bug, I'll take a look at it.
------- 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