Gnome 46 breaks gnome-kering ssh integration
Expected behaviour
Upon opening the terminal and trying to log in to a remote box via SSH Gnome Keyring will show a GUI popup asking for the key passphrase -- but only once; afterwards the keys will be cached until the login session is alive.
Current behaviour
Using ssh the passhrase dialog is not shown, but the passphase is asked for within the terminal again and again.
How to reproduce your issue? Upgrade to Gnome 46 and try to use ssh. ;)
Environment
First found on pmOS with Phosh, but it's been confirmed it's present with stock Gnome on Alpine. See: https://gitlab.com/postmarketOS/pmaports/-/issues/2728#note_1852217433
Additional information
Tips and workarounds can be found here:
- https://joshtronic.com/2024/03/10/gnome-keyring-disables-ssh-agent/
- https://www.adamsdesk.com/posts/fix-gnome-keyring-ssh-auth-sock/
but they don't really help, as gcr-ssh-agent
is installed but won't autostart and starting it by hand will result in a segfault on ARMv7 anyway.
The only workaround is:
- put
eval $(ssh-agent)
in your.profile
- add AddKeysToAgent yes to the top of ~/.ssh/config (outside of any Host-blocks)
- log out and back in again