Resolved

SSH agent does not start

avatar

Hi!

When I try to launch an SSH-key agent, I get an error message that it is not possible to launch an agent, since perhaps another agent has been launched.

Other agents are not launched.

Relaunch of the program does not help.

RDM version: 2025.1.0.15

OS information:

Distributor ID: Neon
Description:    KDE neon 6.3
Release:        24.04
Codename:       noble

avatar

Recommended Answer

Do you have kwallet installed on your machine ? We found that the issue isn't related to KDE, but rather to the KWallet secrets service providers. We were able to get it working by following the steps outlined in this blog.

Please give it a try and let us know if it resolves the issue for you.

Thanks, that pointed me in the right direction

My issue wasn't with KWallet specifically, but it effectively was the same problem. I just assumed that RDM's internal ssh agent would set the SSH_AUTH_SOCK. I’m using gnome-keyring as my secrets provider instead of KWallet and many on Arch + Hyprland + SDDM, getting gnome-keyring to work properly at login is tricky, so I had kind of been putting off addressing it.

Anyway, I got it working now. I used the startup script from the blog you linked, adapted into my own startup.sh script, which I have Hyprland run on session startup. That takes care of launching the keyring daemon with SSH support.

In addition, I added this line to my .bashrc to make sure the SSH_AUTH_SOCK variable is set in terminal sessions:

SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket 2>/dev/null || echo "$XDG_RUNTIME_DIR/keyring/ssh")

Now SSH_AUTH_SOCK is properly set, and RDM is able to use the agent as expected. I’ll probably refine my setup later, but this fix is working well for now. Appreciate the help.

All Comments (18)

avatar

Hello,

Thank you for contacting us on that matter.

Do you have relevant error messages in Help - Application Logs in RDM?

Could you verify if any other built-in SSH-Key agent isn't running on your system? From what I found online it's the ssh-agent on KDE neon.

Best regards,

Érica Poirier