II’ve read some posts on it here and there but with ubuntu it worked with that script in bashrc but here, it is not working really. What I want is to not using my ssh passphrase everytime I want to use ssh.
I use openwrt on my router so I use pretty often an ssh session and it asks me my passphrase cause I uploaded a key in the config (id_ed25519) , here what I used with ubuntu:
#bashrc
if [ ! -S ~/.ssh/ssh_auth_sock ]; then
eval `ssh-agent`
ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
fi
So do you have an idea what I could add to fo the same with Open Suse?
thanks
In my experience, “ssh-agent” is automatically started when I login to KDE (plasma-x11), but not when I use KDE-Wayland. And it is automatically started with Gnome (X11 or Wayland).
In more detail, this is in a VM running Krypton (to test Plasma 6). And yes, Wayland is doing fine with Plasma 6.
Plasma 6 should be officially released pretty soon now, and is likely to show up in regular Tumbleweed within a few weeks.
In that Krypton VM, I put my script in ~/.config/plasma-workspace/env which is probably the best place when using KDE.
On my normal desktop, I usually stay logged in, so I only need to enter my passphrase once per reboot. In the VM session, I logout and login after a plasma 6 update, so it is nice to not have to reenter my passphrase when I next login…
And as expected KDE Wayland does not have SSH agent because it is started by xinit machinery which is not used in Wayland session.
You problem is not that SSH agent does not run, but that it does not have and private keys. You need to explicitly add keys you want to use with ssh-add.