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


Groups > gnu.emacs.help > #50066

Re: tramp and ssh-key passphrase

Path csiph.com!au2pb.net!weretis.net!feeder6.news.weretis.net!news.glorb.com!usenet.stanford.edu!not-for-mail
From Peter Münster <pmlists@free.fr>
Newsgroups gnu.emacs.help
Subject Re: tramp and ssh-key passphrase
Date Mon, 29 Feb 2016 13:49:45 +0100
Lines 57
Approved help-gnu-emacs@gnu.org
Message-ID <mailman.6316.1456750205.843.help-gnu-emacs@gnu.org> (permalink)
References <87fuwcykn3.fsf@heimdali.yagibdah.de> <87povflvw7.fsf@gmx.de>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type multipart/mixed; boundary="=-=-="
X-Trace usenet.stanford.edu 1456750205 30942 208.118.235.17 (29 Feb 2016 12:50:05 GMT)
X-Complaints-To action@cs.stanford.edu
To help-gnu-emacs@gnu.org
Envelope-to help-gnu-emacs@gnu.org
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host arennes-651-1-139-147.w2-2.abo.wanadoo.fr
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
Cancel-Lock sha1:MhLS1E3kBiDxJ07YqL/M4BElSwo=
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 80.91.229.3
X-BeenThere help-gnu-emacs@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/help-gnu-emacs>
List-Post <mailto:help-gnu-emacs@gnu.org>
List-Help <mailto:help-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.emacs.help:50066

Show key headers only | View raw


[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


Thread

Re: tramp and ssh-key  passphrase Peter Münster <pmlists@free.fr> - 2016-02-29 13:49 +0100

csiph-web