[Bug 1158] Setting the environment in authorized_keys does not work
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Wed Feb 15 18:37:33 EST 2006
http://bugzilla.mindrot.org/show_bug.cgi?id=1158
Summary: Setting the environment in authorized_keys does not work
Product: Portable OpenSSH
Version: 3.9p1
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sshd
AssignedTo: bitbucket at mindrot.org
ReportedBy: michael.henry at axegroup.com.au
I'm using CentOS 4.2 with all the latest patches. As per the O'Reilly book
"SSH, The Secure Shell: The Definitive Guide"
(http://www.unix.org.ua/orelly/networking_2ndEd/ssh/ch08_02.htm#ch08-65720.html)
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:
Using username "cvsstore".
Authenticating with public key "dsa-key-20051105" from agent
Last login: Wed Feb 15 18:19:15 2006 from amitabha.axegroup.local
[cvsstore at axefs1 ~]$ env | grep LOGNAME
LOGNAME=cvsstore
Also: using multiple "environment" entries results in the ssh connection
attempt being rejected.
Thanks,
Michael
------- 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