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
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
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
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
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.
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
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
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
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
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,
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
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.
12 matches
Mail list logo