help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp and ssh-key passphrase


From: Peter Münster
Subject: Re: tramp and ssh-key passphrase
Date: Mon, 29 Feb 2016 13:49:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

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

Attachment: askpass.lisp
Description: Binary data

Attachment: gpg-agent.conf
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]