all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: lee <lee@yagibdah.de>
To: help-gnu-emacs@gnu.org
Subject: Re: tramp and ssh-key  passphrase
Date: Fri, 18 Mar 2016 20:38:24 +0100	[thread overview]
Message-ID: <87a8lvfufj.fsf@heimdali.yagibdah.de> (raw)
In-Reply-To: <877fhouggd.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Mon, 29 Feb 2016 08:24:34 +0100")

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> lee <lee@yagibdah.de> writes:
>
>> Hi,
>>
>> is there a way to have tramp cache the passphrase of the ssh key I'm
>> using to edit a remote file --- or some other way which doesn't require
>> me to enter the passphrase all the time?
>>
>> It's asking for the passphrase every time emacs wants to perform an
>> autosave, and I don't really want to turn off autosaving or to use a key
>> that doesn't require a passphrase.
>>
>> I wouldn't mind defaulting to autosaving locally when editing remote
>> files, though.  Maybe that can be done somehow?
>>
>> The way it is kinda defeats the comfort of being able to edit remote
>> files ...
>
> Try setting up an SSH agent.  That way you just have to enter the
> passphrase once per session.

Thanks, I tried, and it only says


,----
| Could not add card ".ssh/[...]": agent refused operation
`----


when I try to add a key, so I killed it.  The agent had been started
with


,----
| eval $(ssh-agent)
`----


in my .xinitrc.

This is awful because it requires me to exit the X session to get the
ssh-agent to work.  I won't do much experimenting on this ...


-- 
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, X toolkit)
 of 2016-03-18 on heimdali



  reply	other threads:[~2016-03-18 19:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.6191.1456683386.843.help-gnu-emacs@gnu.org>
2016-02-29  7:24 ` tramp and ssh-key passphrase Loris Bennett
2016-03-18 19:38   ` lee [this message]
2016-03-18 20:21     ` Jorge A. Alfaro-Murillo
2016-02-28 14:28 lee
2016-02-29  9:15 ` Michael Albinus
2016-02-29 12:49   ` Peter Münster
2016-03-18 19:39   ` lee

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=87a8lvfufj.fsf@heimdali.yagibdah.de \
    --to=lee@yagibdah.de \
    --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.