[Bug 1771011] Re: Doesn't accept environment variable with underscore in its name in AuthorizedKeysFile

Joshua Powers josh.powers at canonical.com
Mon May 14 14:58:43 UTC 2018


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 PermitUserEnvironment 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 at 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.

** Changed in: openssh (Ubuntu)
       Status: New => Incomplete

** Changed in: openssh (Ubuntu)
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/1771011

Title:
  Doesn't accept environment variable with underscore in its name in
  AuthorizedKeysFile

Status in openssh package in Ubuntu:
  Incomplete

Bug description:
  If environment variable name defined in AuthorizedKeysFile contains underscore character (environment="FOO_BAR=1" ...), sshd refuses connection and throws following error:
  authorized_keys:1: bad key options: invalid environment string

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1771011/+subscriptions



More information about the foundations-bugs mailing list