From: Julien Cubizolles <j.cubizolles@free.fr>
To: help-gnu-emacs@gnu.org
Subject: Emacs daemon as a systemd service can't use ssh-agent
Date: Sun, 30 Oct 2016 00:45:15 +0200 [thread overview]
Message-ID: <87a8dmdbb8.fsf@free.fr> (raw)
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.
next reply other threads:[~2016-10-29 22:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-29 22:45 Julien Cubizolles [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-10-29 22:54 Emacs daemon as a systemd service can't use ssh-agent Julien Cubizolles
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8dmdbb8.fsf@free.fr \
--to=j.cubizolles@free.fr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.