Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256297

Re: ssh-add after graphical login

From Michel Verdier <mv524@free.fr>
Newsgroups linux.debian.user
Subject Re: ssh-add after graphical login
Date 2023-03-23 13:20 +0100
Message-ID <Gcs5b-ewhM-1@gated-at.bofh.it> (permalink)
References <GcoNX-eu4b-1@gated-at.bofh.it> <GcriN-evKl-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 myself, right before running ssh-add.

I let ssh-agent call gpg-agent. So I do nothing in .ssh/config and in my
.xsession I put :

unset SSH_AGENT_PID
SSH_ASKPASS=/usr/bin/ssh-askpass
SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export SSH_ASKPASS SSH_AUTH_SOCK

gpg-agent is launched via systemd. In .gnupg/gpg-agent.conf I put :

pinentry-program /usr/bin/pinentry-gnome3
enable-ssh-support

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

ssh-add after graphical login Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-23 09:50 +0100
  Re: ssh-add after graphical login Greg Wooledge <greg@wooledge.org> - 2023-03-23 12:30 +0100
    Re: ssh-add after graphical login Michel Verdier <mv524@free.fr> - 2023-03-23 13:20 +0100
    Re: ssh-add after graphical login Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-23 13:50 +0100
  Re: ssh-add after graphical login basti <mailinglist@unix-solution.de> - 2023-03-23 13:00 +0100
    Re: ssh-add after graphical login Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-23 13:20 +0100
  Re: ssh-add after graphical login Greg Wooledge <greg@wooledge.org> - 2023-03-23 14:00 +0100
    Re: ssh-add after graphical login Jeffrey Walton <noloader@gmail.com> - 2023-03-23 14:10 +0100
  Re: ssh-add after graphical login Jeffrey Walton <noloader@gmail.com> - 2023-03-23 14:00 +0100
  Re: ssh-add after graphical login Vincent Lefevre <vincent@vinc17.net> - 2023-03-23 15:20 +0100
  Re: ssh-add after graphical login Erwan David <erwan@rail.eu.org> - 2023-03-23 18:00 +0100
    Re: ssh-add after graphical login Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-03-26 10:40 +0200

csiph-web