Loading ssh-agent(and keeping it trough the session) on KDE/Plasma: Solved

So after some attempts on having my ssh-key loaded in the agent I guess I finally found my expected way:
A popup when KDE starts asking for the ssh-key, after entering the password the key is saved for all that session:
My setup is: KDE/Plasma and starts with SDDM
My unique change was on ~/.xprofile like bellow:

Code:
slemke@besta:/home/slemke 1010 $ -> cat .xprofile
#!/bin/sh

export SSH_ASKPASS=/usr/local/bin/x11-ssh-askpass ;export SSH_ASKPASS
eval `ssh-agent -s`
ssh-add &
slemke@besta:/home/slemke 1011 $ ->
 
And if you use startx to start kde, then:

Code:
slemke@besta:/home/slemke 1001 $ -> cat .xinitrc
export SSH_ASKPASS=/usr/local/bin/x11-ssh-askpass ;export SSH_ASKPASS
eval `ssh-agent -s`
ssh-add &
#Message from plasma5-plasma-workspace-5.15.4_1:
#To start plasma5 via x11/startx add the following to your .xinitrc file:
exec ck-launch-session startkde

slemke@besta:/home/slemke 1002 $ ->

Yeah, extracted from the official documentation but I know that we can stumble over it.
 
Back
Top