Bug 90723 - environtment option no longer recognized in authorized keys file
Summary: environtment option no longer recognized in authorized keys file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: openssh
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-12 22:03 UTC by William Volkman
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-02-04 14:06:41 UTC
Embargoed:


Attachments (Terms of Use)

Description William Volkman 2003-05-12 22:03:53 UTC
Description of problem:

Login from remote system when authorized_key file has
matching key fails and requires password.
/var/log/secure reports:
May 12 15:38:37 xxxxx sshd[25315]: Bad options in
/home/wkv/.ssh/authorized_keys2 file, line 2: environment="FOO=wkv" ssh-dss
AAAAB3N...

Version-Release number of selected component (if applicable):

Name        : openssh                      Relocations: (not relocateable)
Version     : 3.5p1                             Vendor: Red Hat, Inc.
Release     : 6                             Build Date: Fri 14 Feb 2003 02:20:53
PM MST
Install Date: Fri 18 Apr 2003 05:49:33 PM MDT      Build Host: daffy.perf.redhat.com
Group       : Applications/Internet         Source RPM: openssh-3.5p1-6.src.rpm
Size        : 458449                           License: BSD
Signature   : DSA/SHA1, Sun 23 Feb 2003 11:42:29 PM MST, Key ID 219180cddb42a60e
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://www.openssh.com/portable.html
Summary     : The OpenSSH implementation of SSH protocol versions 1 and 2.

How reproducible:
Always.

Steps to Reproduce:
1. Setup ~/.ssh/authorized_keys2 file on remote host with content like:
from="*.ourdomain.net",environment="BAR=foo" ssh-dss your-hex-key-value-here
your-comment-field-here
2. Use ssh-add to give your key's password
3. attempt to ssh into remote host, instead of logging it you get the password
prompt.
    
Actual results:


Expected results:


Additional info:

Comment 1 Tomas Mraz 2005-02-04 14:06:41 UTC
You must have PermitUserEnvironment yes in the sshd_config.



Note You need to log in before you can comment on or make changes to this bug.