Doesn't accept environment variable with underscore in its name in AuthorizedKeysFile
Bug #1771011 reported by
Peter Poliak
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
portable OpenSSH |
Unknown
|
Unknown
|
|||
openssh (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
If environment variable name defined in AuthorizedKeysFile contains underscore character (environment=
authorized_keys:1: bad key options: invalid environment string
Changed in openssh (Ubuntu): | |
status: | Confirmed → Triaged |
tags: | added: server-next |
To post a comment you must log in.
Hi, thanks for taking the time to file a bug. Based on that last message from SSH it makes me wonder if the syntax you have is correct.
1) Can you confirm PermitUserEnvir onment is set to yes in your sshd_config?
2) Can you provide more details of the line in question in your authorized keys file? For example, if I add:
environment= "FOO_BAR= 1" ssh-rsa AAAAB
then connect:
root@x:~# env | grep -i foo
FOO_BAR=1
This question may also be better suited for the community forums as it is more of a support issue.