Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > gnu.emacs.help > #50066
| From | Peter Münster <pmlists@free.fr> |
|---|---|
| Newsgroups | gnu.emacs.help |
| Subject | Re: tramp and ssh-key passphrase |
| Date | 2016-02-29 13:49 +0100 |
| Message-ID | <mailman.6316.1456750205.843.help-gnu-emacs@gnu.org> (permalink) |
| References | <87fuwcykn3.fsf@heimdali.yagibdah.de> <87povflvw7.fsf@gmx.de> |
[Multipart message — attachments visible in raw view] - view raw
On Mon, Feb 29 2016, Michael Albinus wrote:
> There is the recommendation to use ssh-agent, which is always good.
Indeed.
And if
- you want to type the passphrase only once at the start of your
X-session
- and your ssh-passphrase is the same as your gpg-passphrase
- and the passphrase should never expire
- and ssh-connections should work from cron-jobs,
then you could
- copy the attached askpass.lisp file to ~/bin
- and fill the list of the fingerprints
- and copy the attached gpg-agent.conf to ~/.gnupg
- and put these 2 lines to your ~/.xinitrc:
SSH_ASKPASS=~/bin/askpass.lisp ssh-add
echo $SSH_AUTH_SOCK >~/.ssh/ssh-auth-sock
- and start your cron-job shell scripts with
export SSH_AUTH_SOCK=`cat ~/.ssh/ssh-auth-sock`
--
Peter
Back to gnu.emacs.help | Previous | Next | Find similar
Re: tramp and ssh-key passphrase Peter Münster <pmlists@free.fr> - 2016-02-29 13:49 +0100
csiph-web