From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Powe Newsgroups: gmane.emacs.help Subject: Re: Tramp with public key ssh Date: 23 Feb 2005 12:49:37 -0500 Organization: The Hospice of the Mind Message-ID: <878y5fxj2m.fsf@ellen.trollope.org> References: <871xb8xb2g.fsf@ellen.trollope.org> <87d5urxup1.fsf@ellen.trollope.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109182081 5978 80.91.229.2 (23 Feb 2005 18:08:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2005 18:08:01 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 23 19:08:01 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D40vM-0002vs-HO for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Feb 2005 19:07:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D41Ck-0007uD-TN for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Feb 2005 13:25:46 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!pln-w!spln!lex!extra.newsguy.com!newsp.newsguy.com!news1 Original-Newsgroups: gnu.emacs.help Original-Lines: 51 Original-NNTP-Posting-Host: p-922.newsdawg.com X-PGP: http://www.trollope.org/pgp.txt X-Home-Page: http://www.trollope.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Xref: shelby.stanford.edu gnu.emacs.help:128749 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24285 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24285 >>>>> "JE" == J E Lewis writes: JE> On Wed, Feb 23, 2005 at 08:38:34AM -0500, Michael Powe wrote: >> >> I am set up for an ssh public-key login to an account. When >> I >> try to edit a file there via emacs + tramp, tramp asks for >> the >> >> Enter passphrase for key '/home/powem/.ssh/id_dsa': >> .......... >> tramp: Sending password Enter passphrase for key >> >> '/home/powem/.ssh/id_dsa': Enter passphrase for key >> >> '/home/powem/.ssh/id_dsa': . Enter passphrase for key >> >> '/home/powem/.ssh/id_dsa': .. Enter passphrase for key >> >> '/home/powem/.ssh/id_dsa': ........ >> >> >> Any ideas on what might be happening here? I After the >> initial >> password request, none of the other material shown >> appears in >> the minibuffer. That is all just in the >> *Messages* buffer. JE> Well it looks to me like an ssh public key issue. When you JE> ssh to a box with your ssh pub-key on it it asks for your JE> passphrase and not your passwd. If you type anything that is JE> not your passphrase (other than a blank return) then it will JE> prompt again for the passphrase and continue doing so until JE> the blank return or 3 times or more pass. Then it will prompt JE> for your passwd. JE> If you start ssh-agent first and properly login to the agent JE> then you will by pass the passphrase question and it should JE> just login to the machine for you. Hmm, I admit I don't know how exactly the pub key authentication works. It sounds like when I am being prompted for the passphrase, I'm being prompted by the local ssh, which then "forwards" the passphrase? In which case, tramp could be talking to the wrong party. I'm trying to get away from password authentication altogether and currently have pub-key on all my connections. I've used ssh-agent in the past but it's been a long time. I will do some more research. Thanks. mp -- Michael Powe michael@trollope.org Naugatuck CT USA It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical? --Alan Perlis, Epigrams in Programming