Subject: Re: bin/30270: ssh-askpass path hardcoded into ssh-add
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: netbsd-bugs
Date: 05/18/2005 11:24:01
The following reply was made to PR bin/30270; it has been noted by GNATS.
From: "Geert Hendrickx" <geert.hendrickx@ua.ac.be>
To: Lubomir Sedlacik <salo@Xtrmntr.org>
Cc: gnats-bugs@netbsd.org
Subject: Re: bin/30270: ssh-askpass path hardcoded into ssh-add
Date: Wed, 18 May 2005 13:23:37 +0200
On Wed, May 18, 2005 at 11:21:57AM +0200, Lubomir Sedlacik wrote:
> On Wed, May 18, 2005 at 09:11:00AM +0000, geert.hendrickx@ua.ac.be wrote:
> > >Synopsis: ssh-askpass path hardcoded into ssh-add
> > >Description:
> > I have ssh-askpass installed into /usr/pkg/bin/ssh-askpass (from
> > pkgsrc). ssh-add in X says:
> >
> > ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or
> > directory
> >
> > /usr/src/crypto/dist/ssh/pathnames.h has this path hardcoded.
> > >How-To-Repeat:
> > have pkgsrc/security/ssh-askpass installed, and do "ssh-add <
> > /dev/null" with DISPLAY variable set.
> > >Fix:
> > /usr/src/crypto/dist/ssh/pathnames.h has the path hardcoded. Change
> > the path, or make it user-definable, or just look it up in $PATH.
>
> from ssh-add(1):
>
> ENVIRONMENT
> DISPLAY and SSH_ASKPASS
> If ssh-add needs a passphrase, it will read the passphrase from
> the current terminal if it was run from a terminal. If ssh-add
> does not have a terminal associated with it but DISPLAY and
> SSH_ASKPASS are set, it will execute the program specified by
> SSH_ASKPASS and open an X11 window to read the passphrase. This
> is particularly useful when calling ssh-add from a .xsession or
> related script. (Note that on some machines it may be necessary
> to redirect the input from /dev/null to make this work.)
>
> did you define SSH_ASKPASS?
Ah, I'm sorry... It works just fine when I set SSH_ASKPASS to the
correct path. You may mark the report as closed.
Thanks.
GH
--
:wq