Issue with gnome-keyring 1.46, ssh key password not stored

Thanks for the summary, I struggled to find the information that the SSH functionality was moved out of the gnome-keyring-daemon and already started pulling my hair out over the issue :smiley:

I think you need to start gcr as a user unit, i.e. run systemctl enable gcr-ssh-agent.socket --user, and then export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh (wherever you set environment variables in your DE/WM).

For example, my sway startup in .zprofile now reads:

# If running form tty1 start sway
if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
	eval $(gnome-keyring-daemon --start) #Not sure if this is still necessary
	export SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/gcr/ssh #New
	export ENVS_STUFF #All my other environment things
	exec sway --unsupported-gpu
fi

Hope this fixes your issue as well.

3 Likes