> On Oct 17, 2023, at 15:47, ope...@tr.id.au wrote:
>
> [...] I installed x11-ssh-askpass; ssh-agent found it automatically and everything works as expected.
Wow. Scary to know that's still around and still works. Profuse apologies for that.
> It would be nice to know how [...] the askpass dialog knows that user presence is being requested.
ssh-askpass doesn't have any idea what's bein requested; if I recall correctly, it displays whatever message it was called with, and it prints on Syd out whatever I put it received, exiting with status zero for OK or nonzero for Cancel.
It's ssh-agent or ssh-add that "know" about user presence, insofar as that can be known.
That is to say, the source code you probably want to look at is in ssh-agent, rather than x11-ssh-askpass.
--
jim knoble
"prints on _stdout_ whatever _input_ it received"
Thanks, auto-incorrect.
>> Wow. Scary to know that's still around and still works. Profuse apologies for that.
>
>lol. There is a niche for it for people like me who don't want to pull
>in all the baggage of a fullblown desktop environment.
Definitely!
On my work system, though, I use kwalletaskpass, which I wrote myself,
to put some of the answers, mostly these for the SSH and PGP key, into
the KDE wallet, and uses pinentry for the rest.
http://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/code/kwalletcli/kwalletaskpass?rev=HEAD
It is selected by setting SSH_ASKPASS to the path of it in the
environment of the ssh-add(1) process.
Good luck,
//mirabilos
--
Infrastrukturexperte • Qvest Digital AG
Am Dickobskreuz 10, D-53121 Bonn • https://www.qvest-digital.com/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 18196 • USt-ID (VAT): DE274355441
Vorstand: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg
Vorsitzender Aufsichtsrat: Peter Nöthen