Re: Lost graphical ssh-askpass with Xfce4 in forky
On 28/09/2025 21:21, Julian Gilbey wrote:
On Sat, Sep 27, 2025 at 12:12:27PM +0700, Max Nikulin wrote:
In my notes I have a mention of
gnome-keyring-daemon for GNOME session on Ubuntu and it was 5 years ago. The
related setting was "SSH Key Agent" in gnome-session-properties.
Thanks! I can't see anything like that in Xfce4, though,
unfortunately.
Finally I tried a VM with Debian 12 bookworm XFCE that I have. I see the
following file /etc/xdg/autostart/gnome-keyring-ssh.desktop, so
gnome-keyring-daemon is installed by default.
I tried
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh ssh HOST
and I got a GUI prompt. I have no idea it is one that you expect. I do
not have ssh-askpass installed in this VM.
Do you get a GUI prompt in response to the following command?
ssh-add </dev/null
Good idea! I get the same graphical prompt I used to when I have
ssh-askpass-gnome installed, but no graphical prompt when I don't have
the redirect.
Do you mean that you may get 2 different GUI prompts in response to
simple "ssh" before? Then I am confused. You may try to run
"ssh-askpass" directly to figure out what command was executed earlier.
(This also means that running "ssh ..." requires a
passphrase every time until I separately run "ssh-add".)
You may configure AddKeysToAgent (I just have discovered "confirm"
option that I am going to try.) to avoid pass phrase prompt every time.
The running agents (according to systemctl) are:
systemd-tty-ask-password-agent --wall
/usr/bin/ssh-agent /usr/bin/im-launch startxfce4
/usr/bin/gpg-agent --supervised
More authoritative way for current shell is
env | grep SSH_
To figure out how many agents are running
ps xwuf
and what ones may be activated on demand
systemctl --user list-sockets
Searching for "ask" in ssh(1), I found another option to consider
SSH_ASKPASS_REQUIRE=prefer ssh -o AddKeysToAgent=confirm HOST
Reply to: