openssh at tr.id.au
2023-Oct-17 22:41 UTC
ssh-agent hides sk "confirm user presence" message
Thanks everyone for the patience and the tips. I installed x11-ssh-askpass; ssh-agent found it automatically and everything works as expected. It would be nice to know how it is implemented, i.e. how the askpass dialog knows that user presence is being requested. Ideally I'd rather have notifications like this appear via dunst, i.e. have an SSH_ASKPASS script that detects whether user presence is being detected and in that case use notify-send before falling back to x11-ssh-askpass. I guess I may have to poke at some x11-ssh-askpass and ssh-agent sources some time to see what the interaction looks like under the hood. Cheers, Tim
Greetings, Programs!> On Oct 17, 2023, at 15:47, openssh at 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