From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: tramp "Enter passphrase for key" Date: Fri, 23 Jul 2010 12:34:12 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87wrsnkjtn.fsf@puma.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291848787 31926 80.91.229.12 (8 Dec 2010 22:53:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 22:53:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 23:53:01 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQSsb-0003b1-Pe for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 23:52:57 +0100 Original-Received: from localhost ([127.0.0.1]:40276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQSsb-0001NU-9w for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:52:57 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:01YSS4VlXWjLS4CJ41r2AVTyoSM= Original-Lines: 47 Original-NNTP-Posting-Host: 92ce155b.news.astraweb.com Original-X-Trace: DXC=3XHG6[EdlgJPn_2M35M[hOL?0kYOcDh@Ji=VFiPm?<[E0^N4DeQ`aMCIhndn4oVl4@dYIkFWm`Lb@ Original-Xref: usenet.stanford.edu gnu.emacs.help:179956 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76163 Archived-At: Gary writes: > I have ssh from the console setup to use authentication using > keys. Works fine. > > Tramp on the other hand... > > Well, after the event I do see the requests to "Enter passphrase for > key" but I am not actually prompted for them when I try to open a file > on the remote host. Instead I am just asked for a login password. Any > idea what is going on and how to fix it? > > When you say you have ssh working fine from the console with kyes, I assume you are using an ssh agent so that the first time you try to ssh to a remote host, a window pops up asking for your ssh key passphrase. Once entered, any further onnections work without having to re-enter your pass key. Right? How are you starting emacs? How are you starting the ssh agent? My guess is that you are starting your ssh agent as part of your xsession startup, but your starting emacs via a menyu option. If this is the case, whay may be happening is that emacs is not running as a child process of your xsession process. This will mean that it cannot access the ssh agent. For the ssh agent to work, it must be started in a parent process of the process you want to run ssh from. One way to verify this would be to run emacs from inside a console rather than from a menu or launcher. Try the following 0 ssh to the remote host from a console session. If allworks correctly, logout fromt he remote host and then type emacs at the prompt. Once emacs is running, try using tramp and see if it works. If it does, then this is almost certainly your problem, in which case, what you need to do is see how to get the ssh agent running in a process that will be a parent process tot he one that is launched when you execute emacs from the menu or launcher. How you do this will depend on your distribution, window manager and launcher setup. Tim -- tcross (at) rapttech dot com dot au