I'm trying to set up GNOME-Keyring such that when it is unlocked after login, it will also allow me to use my SSH key, which is encrypted.
This is a Debian 12 system. The key in question is an ed25519 SSH key, located under .ssh/id_ed25519. I am using i3. The exact same setup works fine under an identical setup.
I am prompted for the keyring password after login and other services like Nextcloud only work with the correct password, so I assume that the unlock procedure works just fine. Seahorse (the GNOME keyring GUI) lists the key, so it is known to GNOME keyring.
Status of she GCR ssh-agent wrapper:
systemctl status --user gcr-ssh-agent.socket ● gcr-ssh-agent.socket - GCR ssh-agent wrapper Loaded: loaded (/usr/lib/systemd/user/gcr-ssh-agent.socket; enabled; preset: enabled) Active: active (running) since Sat 2024-03-23 16:17:15 CET; 1h 22min ago Triggers: ● gcr-ssh-agent.service Listen: /run/user/1000/gcr/ssh (Stream) CGroup: /user.slice/user-1000.slice/[email protected]/app.slice/gcr-ssh-agent.socket The environment variable is set properly and the file exists:
> echo $SSH_AUTH_SOCK /run/user/1000/gcr/ssh > file $SSH_AUTH_SOCK /run/user/1000/gcr/ssh: socket ssh-add -l lists the key, with the correct name and type.
And yet, when I type ssh my-other-computer, I am prompted for the passphrase for that key.
What am I missing? Thanks in advance for any ideas on how to debug this further!
EDIT: running ssh with -vvv reveals:
debug2: get_agent_identities: ssh_agent_bind_hostkey: communication with agent failed debug1: get_agent_identities: ssh_fetch_identitylist: communication with agent failed Note that this is a Debian system connecting to another Debian system (no Windows, not a PowerShell issue).