Unable to use ssh-agent with confirmation, when logged in on a virtual terminal
Johannes Kastl
mail at ojkastl.de
Wed Nov 5 07:50:48 EST 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 04.11.2014 Ángel González wrote:
> /usr/lib/ssh/ssh-askpass is a graphical application, so it won't
> work on the console.
I found that on openSUSE, openssh-askpass is described as 'A
passphrase dialog for OpenSSH and the X Window System'.
> DISPLAY=foo SSH_ASKPASS=/bin/true ssh-agent bash
>> ssh-add -c /path/to/keyfile ssh machine
This works. So it really is the missing application.
> This time it should work (works here). Using /bin/true means that
> it will always answer "yes", but enough to show it is working. You
> should instead make a program using getpass(2) or maybe a shell
> script that asks you.
I wonder why there is no such application delivered with openssh?
Surely someone more capable than me has used this feature before?
And, also: In the man page this whole SSH_ASKPASS/DISPLAY-thingy is
described as a way for X11-users and if no terminal is associated.
But in my case, all of this should not be necessary, as I am running
this from a terminal, and ssh just has to ask for the passphrase. As
it might ask for the passphrase when adding it to ssh-agent or when
ssh'ing without the agent.
> I think you are not using ssh-agent but Kwallet (it can also serve
> as ssh agent).
I'm manually starting ssh-agent on the konsole (KDE's terminal).
Regards,
Johannes
- --
The day Microsoft makes something that doesn't suck is probably the
day they start making vacuum cleaners.
(unknown)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with SeaMonkey - http://www.enigmail.net/
iEYEARECAAYFAlRZPCgACgkQzi3gQ/xETbLoDwCfTlXENlGTZ118KopB5E9m+lmG
BPcAn0/TmYqSIMO6c7Kbg77zEkctTgB+
=l59J
-----END PGP SIGNATURE-----
More information about the openssh-unix-dev
mailing list