2.5.1p1 ssh-agent path problem in Solaris

mouring at etoh.eviladmin.org mouring at etoh.eviladmin.org
Wed Feb 21 09:48:00 EST 2001


This is a known problem.  And has been fixed in the CVS tree.  And I
believe the latest snapshot reflect the change.

- Ben

On Tue, 20 Feb 2001, Allen Louie wrote:

>     
> I'm having a path problem with OpenSSH 2.5.1p1 in Solaris (7).  When
> ssh-agent is run, environment variables aren't being passed to the
> spawned shell.
> 
>     sol# env | wc -l
>           23
>     sol# env | grep -i ssh
>     SSH_CLIENT=10.0.1.146 1047 22
>     SSH_TTY=/dev/pts/0
>     sol#
>     sol# ssh-agent sh 
>     sol# env | wc -l
>            1
>     sol# env   
>     SSH_AGENT_PID=12032
>     sol#
> 
> If I set SSH_AUTH_SOCK manually, ssh-agent (and ssh-add) does function
> properly...
> 
>     sol# find /tmp -name 'agent*' -exec ls -l {} \;
>     srwxr-xr-x   1 root     other          0 Feb 20 14:07 /tmp/ssh-Lfa12009/agent.12009
>     sol#
>     sol# SSH_AUTH_SOCK=/tmp/ssh-Lfa12009/agent.12009
>     sol# export SSH_AUTH_SOCK
>     sol# /usr/local/bin/ssh-add
>     Need passphrase for //.ssh/identity
>     Enter passphrase for root at js: 
>     Identity added: //.ssh/identity (root at js)
>     sol# /usr/local/bin/ssh root at foo
>     Last login: Mon Feb 19 18:12:04 2001 from 10.0.1.210
>     Sun Microsystems Inc.   SunOS 5.7       Generic October 1998
>     Sun Microsystems Inc.   SunOS 5.7       Generic October 1998
>     foo#
>     
> It doesn't look like this environment problem affects FreeBSD
> 4.2-stable...  
> 
>     fbsd# env | wc -l
>           60
>     fbsd# env | grep -i ssh
>     SSH_CLIENT=10.0.1.19 1692 22
>     SSH_TTY=/dev/ttyp9
>     fbsd#
>     fbsd# ssh-agent sh
>     fbsd# env | grep -i ssh
>     SSH_CLIENT=10.0.1.19 1692 22
>     SSH_AGENT_PID=45672
>     SSH_TTY=/dev/ttyp9
>     SSH_AUTH_SOCK=/tmp/ssh-P0FQ5J0F/agent.45671
>     fbsd# env | wc -l
>           62
>     fbsd#
>     
> 
> Please advise... thanks in advance!
> 
>     
> 
> 






More information about the openssh-unix-dev mailing list