From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: lee Newsgroups: gmane.emacs.help Subject: Re: tramp and ssh-key passphrase Date: Fri, 18 Mar 2016 20:38:24 +0100 Organization: my virtual residence Message-ID: <87a8lvfufj.fsf@heimdali.yagibdah.de> References: <877fhouggd.fsf@hornfels.zedat.fu-berlin.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1458331459 30177 80.91.229.3 (18 Mar 2016 20:04:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 18 Mar 2016 20:04:19 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 18 21:04:14 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ah0d1-0008VC-89 for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 21:04:11 +0100 Original-Received: from localhost ([::1]:46079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah0cx-0002r7-AC for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Mar 2016 16:04:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah0ci-0002qx-RZ for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 16:03:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ah0ce-0007zi-Fz for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 16:03:52 -0400 Original-Received: from acheron.yagibdah.de ([185.55.75.245]:45925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ah0ce-0007zX-76 for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 16:03:48 -0400 Original-Received: from heimdali.yagibdah.de ([192.168.3.20]) by acheron.yagibdah.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.85) (envelope-from ) id 1ah0cb-00077B-79 for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 21:03:45 +0100 Original-Received: from lee by heimdali.yagibdah.de with local (Exim 4.85) (envelope-from ) id 1ah0cb-0003OI-58 for help-gnu-emacs@gnu.org; Fri, 18 Mar 2016 21:03:45 +0100 In-Reply-To: <877fhouggd.fsf@hornfels.zedat.fu-berlin.de> (Loris Bennett's message of "Mon, 29 Feb 2016 08:24:34 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 185.55.75.245 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109623 Archived-At: "Loris Bennett" writes: > lee 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