* Emacs daemon as a systemd service can't use ssh-agent
@ 2016-10-29 22:45 Julien Cubizolles
0 siblings, 0 replies; 2+ messages in thread
From: Julien Cubizolles @ 2016-10-29 22:45 UTC (permalink / raw)
To: help-gnu-emacs
I'm starting Emacs as a daemon with a systemd user service, as per
http://www.wikemacs.org/wiki/Emacs_server. It's mostly working fine but
it doesn't seem to be able to use the ssh-agent running in the graphical
session (I'm running gnome-shell): I get asked for my password every
time as use a tramp connection. For some reason, gpg-agent doesn't have
this problem: the first time I access an encrypted file, I get a dialog
box asking for the passphrase but I don't have to enter it the
subsequent times.
One workaround I found it to use keychain to manage both gpg-agent and
ssh-agent once the session is started and then use
the keychain-environment.el to import the relevant environment
variables. Emacs can then use ssh-agent.
I'm however looking for a way to have my display manager (gdm) ask for
the ssh and gpg passphrases at login and somehow make Emacs aware of
them. How would you do it ?
Julien.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Emacs daemon as a systemd service can't use ssh-agent
@ 2016-10-29 22:54 Julien Cubizolles
0 siblings, 0 replies; 2+ messages in thread
From: Julien Cubizolles @ 2016-10-29 22:54 UTC (permalink / raw)
To: help-gnu-emacs
I'm starting Emacs as a daemon with a systemd user service, as per
http://www.wikemacs.org/wiki/Emacs_server. It's mostly working fine but
it doesn't seem to be able to use the ssh-agent running in the graphical
session (I'm running gnome-shell): I get asked for my password every
time as use a tramp connection. For some reason, gpg-agent doesn't have
this problem: the first time I access an encrypted file, I get a dialog
box asking for the passphrase but I don't have to enter it the
subsequent times.
One workaround I found it to use keychain to manage both gpg-agent and
ssh-agent once the session is started and then use
the keychain-environment.el to import the relevant environment
variables. Emacs can then use ssh-agent.
I'm however looking for a way to have my display manager (gdm) ask for
the ssh and gpg passphrases at login and somehow make Emacs aware of
them. How would you do it ?
Julien.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-10-29 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-29 22:54 Emacs daemon as a systemd service can't use ssh-agent Julien Cubizolles
-- strict thread matches above, loose matches on Subject: below --
2016-10-29 22:45 Julien Cubizolles
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).