You are not logged in.

#1 2025-02-01 15:52:11

Kagu
Member
Registered: 2012-12-15
Posts: 6

[SOLVED] Gnome Keyring (GCR): SSH agent not working

I just installed a fresh arch system with GDM / Gnome. I proceeded to activate GCR:

systemctl --user enable gcr-ssh-agent.socket
(systemctl --user enable gcr-ssh-agent.service) - done to test it, should not be required as far as the wiki states

Afterwards I rebooted and as far as the configuration goes everything seems to be correct. The socket / service are started without errors and /run/user/1000/gcr/ssh is set to

/run/user/1000/gcr/ssh

in my case (using Gnome Console with fish). TThe problem is, that I can't connect via ssh keys, it seems to be an issue with the ssh agent. If I try to log into an server it reaches debug1: Server accepts key: /home/MYUSERNAME/.ssh/id_ed25519 ... and stucks there instead of using the key. If I unset SSH_AUTH_SOCK and thus disabling gcr for the session I'm able to authenticate and login with the key.

There are no error messages in journalctl etc.

Is there something I can do to further debug this issue?

Last edited by Kagu (2025-02-03 12:14:29)

Offline

#2 2025-02-01 20:31:50

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,210

Re: [SOLVED] Gnome Keyring (GCR): SSH agent not working

What does the journal say on the target machine? Is gcr-ssh still running afterwards, e.g. it didn't crash? preferably share full logs, not just excerpts (no, your journal should not contain any sensitive information, you do not need to cut it).

journalctl -b 0 | curl -F 'file=@-' 0x0.st
ystemctl --user status gcr-ssh-agent.{socket,service}

Last edited by jl2 (2025-02-01 20:35:20)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#3 2025-02-01 21:02:27

Kagu
Member
Registered: 2012-12-15
Posts: 6

Re: [SOLVED] Gnome Keyring (GCR): SSH agent not working

The gcr-ssh service is still running. I got it to work by adding my SSH-Keys via secret tool, e.g.

secret-tool store --label="PW id_ed25519" unique ssh-store:$HOME/.ssh/id_ed25519

I don't know why I need to use this method, as the first time I tried to unlock the ssh-key the usual Gnome popup with the password prompt showed up which stores it in seahorse, thus I thought it should also look in seahorse for the actual password.

Offline

#4 2025-02-02 16:34:43

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,210

Re: [SOLVED] Gnome Keyring (GCR): SSH agent not working

Well that makes sense that you need to tell it to use your keys.
If it is solved for you, mark this post as solved by editing the OP and prepending '[SOLVED]'


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB