Ssh-agent in wayland

I use Kubuntu 24.04. I had to switch to Wayland because I need to scale individual monitors. Now I have no way to authenticate ssh requests with my RSA key.

I have tried disabling gpg agent from taking over my ssh auth socket by configuring
disable-ssh-support
in
~/.gnupg/gpg-agent.conf.
That didn’t help and broke opening my kde wallet.

I reverted and tried debugging the gpg agent to handle my ssh key properly, I have set
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket).
But whenever I run
ssh-add ~/.ssh/id_rsa,
I enter my passphrase, get the message that the key was added but
ssh-add -l
says
error fetching identities: Invalid key length.

I have also tried generating a new key, which changed nothing. They key is RSA, should be supported.

How do I get ssh authentication to work in Wayland please?

Hi! For what it’s worth, since the situation you’re dealing with sounds like it doesn’t necessarily directly involve KDE software (I could be missing something, though!), you might have better luck using some of the forums and channels that exist for Kubuntu or Ubuntu overall: Help and Support | Kubuntu

1 Like