Re: Unable to use ssh-agent with confirmation, when logged in on a virtual terminal

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



-----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-----

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev





[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux