Re: ssh-add after graphical login

2023-03-26 Thread Yassine Chaouche
Le 3/23/23 à 17:53, Erwan David a écrit : I create a shell script ~/bin/start-session.sh in this script I have the command ssh-add < - in System Settings > Startup and Shutdown > autostart I add this script as a login script Thanks Erwan, that's what I ended up doing. the ssh-add < - line

Re: ssh-add after graphical login

2023-03-23 Thread Erwan David
Le 23/03/2023 à 09:42, Yassine Chaouche a écrit : Hello all, I'd like something to run ssh-add right after I login to my desktop (KDE). ssh-add needs to prompt me for my passphrase, and doesn't need any privileges. What are my options? Best, I  do this way : I create a shell script

Re: ssh-add after graphical login

2023-03-23 Thread Vincent Lefevre
On 2023-03-23 09:42:53 +0100, Yassine Chaouche wrote: > I'd like something to run ssh-add right after I login to my desktop > (KDE). > ssh-add needs to prompt me for my passphrase, > and doesn't need any privileges. > > What are my options? FYI, with zsh, I'm using wrappers so that I don't need

Re: ssh-add after graphical login

2023-03-23 Thread Jeffrey Walton
On Thu, Mar 23, 2023 at 8:57 AM Greg Wooledge wrote: > > On Thu, Mar 23, 2023 at 08:53:48AM -0400, Jeffrey Walton wrote: > > On Thu, Mar 23, 2023 at 4:43 AM Yassine Chaouche > > wrote: > > > > > > I'd like something to run ssh-add right after I login to my desktop > > > (KDE). > > > ssh-add

Re: ssh-add after graphical login

2023-03-23 Thread Greg Wooledge
On Thu, Mar 23, 2023 at 08:53:48AM -0400, Jeffrey Walton wrote: > On Thu, Mar 23, 2023 at 4:43 AM Yassine Chaouche > wrote: > > > > I'd like something to run ssh-add right after I login to my desktop > > (KDE). > > ssh-add needs to prompt me for my passphrase, > > and doesn't need any privileges.

Re: ssh-add after graphical login

2023-03-23 Thread Jeffrey Walton
On Thu, Mar 23, 2023 at 4:43 AM Yassine Chaouche wrote: > > I'd like something to run ssh-add right after I login to my desktop > (KDE). > ssh-add needs to prompt me for my passphrase, > and doesn't need any privileges. > > What are my options? You can remove the passphrase from the key. Then

Re: ssh-add after graphical login

2023-03-23 Thread Yassine Chaouche
Le 3/23/23 à 12:24, Greg Wooledge a écrit : ssh-add Ah! this is what I was missing! the whole problem was how to ssh-add in a graphical way, now that I have found a way, I can maybe put it in a script inside the XDG Autostart directory. This might leave more room for the ssh-agent to

Re: ssh-add after graphical login

2023-03-23 Thread Yassine Chaouche
Le 3/23/23 à 12:56, basti a écrit : The ssh config inside ~/.ssh/ has an option 'AddKeysToAgent'. Why you don't use this? For example: Host *    ControlMaster auto    ControlPath /run/user/%i/%r@%h-%p    IdentityFile ~/.ssh/id_rsa    ControlPersist 3600    User root    AddKeysToAgent yes

Re: ssh-add after graphical login

2023-03-23 Thread Michel Verdier
Le 23 mars 2023 Greg Wooledge a écrit : > The only part I'm unsure of, for you, is how to ensure that this runs > *after* your ssh agent has already been started. I don't know how ssh > agent startup is handled with Display Manager logins, since I don't use > a DM, and I just start ssh-agent

Re: ssh-add after graphical login

2023-03-23 Thread basti
The ssh config inside ~/.ssh/ has an option 'AddKeysToAgent'. Why you don't use this? For example: Host * ControlMaster auto ControlPath /run/user/%i/%r@%h-%p IdentityFile ~/.ssh/id_rsa ControlPersist 3600 User root AddKeysToAgent yes See man ssh_config On 23.03.23 09:42,

Re: ssh-add after graphical login

2023-03-23 Thread Greg Wooledge
On Thu, Mar 23, 2023 at 09:42:53AM +0100, Yassine Chaouche wrote: > I'd like something to run ssh-add right after I login to my desktop > (KDE). > ssh-add needs to prompt me for my passphrase, > and doesn't need any privileges. > > What are my options? On Debian you can create a ~/.xsessionrc

ssh-add after graphical login

2023-03-23 Thread Yassine Chaouche
Hello all, I'd like something to run ssh-add right after I login to my desktop (KDE). ssh-add needs to prompt me for my passphrase, and doesn't need any privileges. What are my options? Best, -- yassine -- sysadm +213-779 06 06 23 http://about.me/ychaouche Looking for side gigs.