From unknown Sat Aug 09 20:34:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2837: 23.0.91; tramp: ssh passphrase vs. password Reply-To: trentbuck@gmail.com, 2837@debbugs.gnu.org Resent-From: trentbuck@gmail.com Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 01 Apr 2009 00:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2837 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123854470322140 (code B ref -1); Wed, 01 Apr 2009 00:20:02 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Apr 2009 00:11:43 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n310BZki022134 for ; Tue, 31 Mar 2009 17:11:36 -0700 Received: from mail.gnu.org ([199.232.76.166]:57317 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Loo3K-0001Y2-DT for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 20:11:34 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Loo3H-0003xT-R2 for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 20:11:34 -0400 Received: from ti-out-0910.google.com ([209.85.142.188]:22152) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Loo3H-0003xC-1Y for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 20:11:31 -0400 Received: by ti-out-0910.google.com with SMTP id y8so1776388tia.10 for ; Tue, 31 Mar 2009 17:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject; bh=MoqKzjcSigCM7mVDNnmfiOHrLGmS4Udi8mudvg9A+d0=; b=sVEDYivuhx/BGMkAKFqInVdlsO3NSTt4N6hzj9X+0TUPLxwuq0piiJzIZjKClJAa3T DuQMC0qsUXdCdGZP+plChfvLe5p4HAhlekndJ1J4aVWvGIDVZtbr2YMxt94zIXWsAihq eAxWgKJsjsU9X+HpLsY3xUxh2392InU04OPb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject; b=DGZ16LvO6Ybv4xQJjVClSdaskBWvu7rRxyfBXSE+a3j9zxFxaQguHIGbwWX7adSEsv 2KujddfDWx2wBnw0C1jkwhpdnr0/STzkU4BrC7hSB4iRvDbx9wAgAI/6DBl3dgg3jb4n NBrvMCMJhm1wRqOFyeJcPI+uktetp+kl0zXk0= Received: by 10.110.16.15 with SMTP id 15mr10434863tip.53.1238544687184; Tue, 31 Mar 2009 17:11:27 -0700 (PDT) Received: from localhost (nat064.cyber.com.au [203.7.155.64]) by mx.google.com with ESMTPS id d7sm1287161tib.22.2009.03.31.17.11.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 17:11:26 -0700 (PDT) Message-ID: <49d2b12e.07506e0a.7300.2f6e@mx.google.com> Date: Tue, 31 Mar 2009 17:11:26 -0700 (PDT) From: trentbuck@gmail.com To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Just now I tried to open /ssh:dhcp98:/ and it asked me for "dhcp98's password". It *should* have asked me for the passphrase for one of my SSH keys (id_rsa). This either means that the prompt is misleading (i.e. it wants my passphrase) or worse, that it genuinely wants to use password-based authentication (i.e. ignoring my key). In GNU Emacs 23.0.91.1 (i486-pc-linux-gnu) of 2009-03-30 on elegiac, modified by Debian (emacs-snapshot package, version 1:20090329-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.91/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.91/site-lisp:/usr/share/emacs/site-lisp' '--with-x=no' '--without-dbus' '--without-sound' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: rcirc Minor modes in effect: rcirc-track-minor-mode: t savehist-mode: t shell-dirtrack-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t use-hard-newlines: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-g C-g C-g C-x C-f C-f ESC O A C-g C-x C-f / s C-g ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: Saving file /home/twb/.newsrc.eld... Wrote /home/twb/.newsrc.eld Saving /home/twb/.newsrc.eld...done Loading tramp...done Tramp: Opening connection for dhcp98 using ssh... Tramp: Waiting 60s for local shell to come up... Tramp: Sending command `ssh dhcp98 -q -e none && exit || exit' Tramp: Waiting for prompts from remote shell Tramp: Sending password Quit [4 times] Quit From unknown Sat Aug 09 20:34:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2837: 23.0.91; tramp: ssh passphrase vs. password Reply-To: Michael Albinus , 2837@debbugs.gnu.org Resent-From: Michael Albinus Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 01 Apr 2009 05:10:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2837 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2837-submit@emacsbugs.donarmstrong.com id=B2837.123856203229924 (code B ref 2837); Wed, 01 Apr 2009 05:10:07 +0000 Received: (at 2837) by emacsbugs.donarmstrong.com; 1 Apr 2009 05:00:32 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailrelay1.alcatel.de (mailrelay1.alcatel.de [194.113.59.95]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3150S0K029840 for <2837@emacsbugs.donarmstrong.com>; Tue, 31 Mar 2009 22:00:29 -0700 Received: from slbhn1.alcatel.de ([149.204.90.35]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n314xxC2007109; Wed, 1 Apr 2009 06:59:59 +0200 From: Michael Albinus To: trentbuck@gmail.com Cc: 2837@debbugs.gnu.org, rfrancoise@debian.org References: Date: Wed, 01 Apr 2009 06:59:59 +0200 In-Reply-To: (trentbuck@gmail.com's message of "Tue, 31 Mar 2009 17:11:26 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 trentbuck@gmail.com writes: > Just now I tried to open /ssh:dhcp98:/ and it asked me for "dhcp98's > password". It *should* have asked me for the passphrase for one of my > SSH keys (id_rsa). This either means that the prompt is misleading > (i.e. it wants my passphrase) or worse, that it genuinely wants to use > password-based authentication (i.e. ignoring my key). Tramp tries to find out, whether it shall ask for the "password" or the "passphrase". It checks ssh's prompt for this. What does ssh asks you, if you apply "ssh dhcp98" from a shell? Best regards, Michael. From unknown Sat Aug 09 20:34:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2837: 23.0.91; tramp: ssh passphrase vs. password Reply-To: "Trent W. Buck" , 2837@debbugs.gnu.org Resent-From: "Trent W. Buck" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 01 Apr 2009 05:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2837 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2837-submit@emacsbugs.donarmstrong.com id=B2837.12385629952086 (code B ref 2837); Wed, 01 Apr 2009 05:25:04 +0000 Received: (at 2837) by emacsbugs.donarmstrong.com; 1 Apr 2009 05:16:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n315GWxH002078 for <2837@emacsbugs.donarmstrong.com>; Tue, 31 Mar 2009 22:16:33 -0700 Received: by wf-out-1314.google.com with SMTP id 28so3731311wfa.13 for <2837@emacsbugs.donarmstrong.com>; Tue, 31 Mar 2009 22:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=ylMkeVCF70Q+QEp4rR3u1AuHfPdbJ/Qby7YM03E8yG8=; b=P7DtjV7jPK+veTivldSSZ91Wg6dMzqJ/5TI8kjHrPhz0Af58oTMqioMQ6vIeAAWnbT Zhu/eyu+0zIAZTvd8AxYvHME2b6EwOgrtjpQCyS+ZVh+HZ4tQpzBpmu1WpTz8Xv6Dqov hjwHrFoo6WbDu8BlLRzBELodltGzHxRz1b5P4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=NeXXmh7YFusUg/TCBX4wnacpr4ohgcIodCroBjFXqieFguqktPT3trsaT5hPaV5aA+ uvYR6cWTz/swZaO02upZ00+3oE8DlF2r46etQVqRqQNe0bF1vCOJVzvV6MUGUR7Hj7ns wcrTf4ccMQlewAsdA5hq7Gemv4kTM34mrPISI= Received: by 10.142.172.12 with SMTP id u12mr2967222wfe.132.1238562991481; Tue, 31 Mar 2009 22:16:31 -0700 (PDT) Received: from localhost (nat064.cyber.com.au [203.7.155.64]) by mx.google.com with ESMTPS id l31sm2011949rvb.9.2009.03.31.22.16.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 22:16:31 -0700 (PDT) Date: Wed, 1 Apr 2009 16:19:57 +1100 From: "Trent W. Buck" To: Michael Albinus Cc: 2837@debbugs.gnu.org, rfrancoise@debian.org Message-ID: <20090401051956.GA7873@Clio.twb.ath.cx> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) On Wed, Apr 01, 2009 at 06:59:59AM +0200, Michael Albinus wrote: > trentbuck@gmail.com writes: > > > Just now I tried to open /ssh:dhcp98:/ and it asked me for "dhcp98's > > password". It *should* have asked me for the passphrase for one of my > > SSH keys (id_rsa). This either means that the prompt is misleading > > (i.e. it wants my passphrase) or worse, that it genuinely wants to use > > password-based authentication (i.e. ignoring my key). > > Tramp tries to find out, whether it shall ask for the "password" or the > "passphrase". It checks ssh's prompt for this. > > What does ssh asks you, if you apply "ssh dhcp98" from a shell? I'm using OpenSSH and an ssh-agent is running, and Emacs can see that agent. When I have not used ssh-add, I see this: $ ssh dhcp98 Enter passphrase for key '/home/twb/.ssh/id_rsa': From unknown Sat Aug 09 20:34:08 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2837: 23.0.91; tramp: ssh passphrase vs. password Reply-To: Michael Albinus , 2837@debbugs.gnu.org Resent-From: Michael Albinus Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 01 Apr 2009 05:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2837 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2837-submit@emacsbugs.donarmstrong.com id=B2837.12385646158189 (code B ref 2837); Wed, 01 Apr 2009 05:50:02 +0000 Received: (at 2837) by emacsbugs.donarmstrong.com; 1 Apr 2009 05:43:35 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mailrelay1.alcatel.de (mailrelay1.alcatel.de [194.113.59.95]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n315hWxG008183 for <2837@emacsbugs.donarmstrong.com>; Tue, 31 Mar 2009 22:43:33 -0700 Received: from slbhn1.alcatel.de ([149.204.90.35]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id n315hK2W017438; Wed, 1 Apr 2009 07:43:20 +0200 From: Michael Albinus To: "Trent W. Buck" Cc: 2837@debbugs.gnu.org, rfrancoise@debian.org References: <20090401051956.GA7873@Clio.twb.ath.cx> Date: Wed, 01 Apr 2009 07:43:19 +0200 In-Reply-To: <20090401051956.GA7873@Clio.twb.ath.cx> (Trent W. Buck's message of "Wed, 1 Apr 2009 16:19:57 +1100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 "Trent W. Buck" writes: > I'm using OpenSSH and an ssh-agent is running, and Emacs can see that > agent. When I have not used ssh-add, I see this: > > $ ssh dhcp98 > Enter passphrase for key '/home/twb/.ssh/id_rsa': That shall be sufficient for Tramp (it shall recognize "passphrase"). Which Tramp version do you use (C-h v tramp-version)? Can you show me Tramp's traces with level 6? Best regards, Michael. From unknown Sat Aug 09 20:34:08 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: trentbuck@gmail.com Subject: bug#2837 closed by "Trent W. Buck" (Re: bug#2837: 23.0.91; tramp: ssh passphrase vs. password) Message-ID: References: <20090401060150.GA8443@Clio.twb.ath.cx> <49d2b12e.07506e0a.7300.2f6e@mx.google.com> X-Emacs-PR-Message: they-closed 2837 X-Emacs-PR-Package: emacs Reply-To: 2837@debbugs.gnu.org Date: Wed, 01 Apr 2009 06:05:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1238565907-13449-1" This is a multi-part message in MIME format... ------------=_1238565907-13449-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #2837: 23.0.91; tramp: ssh passphrase vs. password It has been closed by "Trent W. Buck" . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact "Trent W. Buck" by replying to this email. --=20 2837: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2837 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1238565907-13449-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2837-done) by emacsbugs.donarmstrong.com; 1 Apr 2009 05:58:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=1.9 required=4.0 tests=FOURLA,FVGT_m_MULTI_ODD,GMAIL, HAS_BUG_NUMBER,IMPRONONCABLE_1,IMPRONONCABLE_2,MONEY,MURPHY_WRONG_WORD1, MURPHY_WRONG_WORD2,STOCKLIKE autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n315wOQj011787 for <2837-done@emacsbugs.donarmstrong.com>; Tue, 31 Mar 2009 22:58:55 -0700 Received: by wf-out-1314.google.com with SMTP id 28so3751369wfa.13 for <2837-done@emacsbugs.donarmstrong.com>; Tue, 31 Mar 2009 22:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=HCFAq8ERAaraUQ3lMh/ehYRdq8k33lOCJf+a7nK8Ts4=; b=dP+R7inZ+8WUMDL6+357nRbrZ7ylB+rmo3fk53KCOTqyfmR9zc8hnGxLrhPDvwxEmU 96mmV6wsfbaPJrnzpsqGW9gfCxuqNuCm04dWqaBzKs9tVwO/0d/dC/KQlRrb9X7N+QNy zz1HFyMIJekHiJ/Zd58bnd2N0nzQ1aLwCiW0o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=AerKTbpo3TNzzIAxjWgC/dANQVYxzmI3VqMjFRKfXWktWMUtE0ndJFoXOCANwnp+bK mltLaxMGseirwuObC5Xa1qJaUh5HscSgnoVcHEabIqCS9RhN+FTwhOnPJM1Kcx4g9c21 875qQuHRxidgDXhRFgdw4GyMKa3XpEbpqAuhM= Received: by 10.143.156.12 with SMTP id i12mr2964690wfo.320.1238565504061; Tue, 31 Mar 2009 22:58:24 -0700 (PDT) Received: from localhost (nat064.cyber.com.au [203.7.155.64]) by mx.google.com with ESMTPS id l31sm2107562rvb.5.2009.03.31.22.58.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 22:58:23 -0700 (PDT) Date: Wed, 1 Apr 2009 17:01:50 +1100 From: "Trent W. Buck" To: Michael Albinus Cc: 2837-done@debbugs.gnu.org, rfrancoise@debian.org Subject: Re: bug#2837: 23.0.91; tramp: ssh passphrase vs. password Message-ID: <20090401060150.GA8443@Clio.twb.ath.cx> References: <20090401051956.GA7873@Clio.twb.ath.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Hmm, now it prints: Passphrase for /ssh:dhcp98: So I guess I just misread passphrase as password this morning... FWIW, here are the details you requested. Sorry to bother you! On Wed, Apr 01, 2009 at 07:43:19AM +0200, Michael Albinus wrote: > "Trent W. Buck" writes: >=20 > > I'm using OpenSSH and an ssh-agent is running, and Emacs can see that > > agent. When I have not used ssh-add, I see this: > > > > $ ssh dhcp98 > > Enter passphrase for key '/home/twb/.ssh/id_rsa': >=20 > That shall be sufficient for Tramp (it shall recognize "passphrase"). >=20 > Which Tramp version do you use (C-h v tramp-version)? tramp-version is a variable defined in `trampver.el'. Its value is "2.1.15" I'm using the version that shipped with my emacs-snapshot: GNU Emacs 23.0.91.1 (i486-pc-linux-gnu) of 2009-03-30 on elegiac, modified by Debian. > Can you show me Tramp's traces with level 6? 16:55:55 tramp-send-command (6) # echo are you awake 16:55:55 tramp-wait-for-regexp (6) #=20 are you awake ///d257b36da3eb455ce42242ed8ee37ff9 16:55:55 tramp-send-command (6) # cd /home/twb/ 2>/dev/null; echo tramp= _exit_status $?=20 16:55:55 tramp-wait-for-regexp (6) #=20 tramp_exit_status 0 ///d257b36da3eb455ce42242ed8ee37ff9 16:55:55 tramp-send-command (6) # /bin/ls -ab 2>/dev/null | while read = f; do if test -d "$f" 2>/dev/null; then echo "$f/"; else echo "$f"; fi; done 16:55:55 tramp-wait-for-regexp (6) #=20 ./ ../ .Auto/ .SemiAuto/ .Xauthority .Xclients .Xdefaults .Xresources .al/ .aptitude/ .bash_history .bash_profile .bash_profile-darcs-backup0 .bash_profile-darcs-backup1 .bash_profile-darcs-backup2 .bash_profile-darcs-backup3 .bashrc .bin/ .cabal/ .cache/ .config/ .crawlrc .darcs/ .debtags/ .devscripts_cache/ .dillo/ .dosage/ .dupload.conf .emacs .emacs.d/ .festivalrc .forward .gconf/ .gconfd/ .ghc/ .gimp-2.2/ .gnome2/ .gnome2_private/ .gnupg/ .gnupg~/ .gnus.el .gtkrc .gtkrc-2.0 .hgignore .hgrc .html2psrc .inkscape/ .inputrc .ircrc .lesshst .mailrc .mg .mozilla/ .mplayer/ .msmtprc .muttrc .nanorc .netrc .offlineimaprc .procmailrc .pythonrc .quiltrc .ratpoisonrc .rcirc.el .rcirc.el-darcs-backup0 .recently-used .reportbugrc .rst2pdf/ .rtorrent.rc .rtrc .screen.el .screen.secrets .screenrc .ssh/ .ssh~/ .stumpwmrc .thumbnails/ .tramp_history .vimrc .w3m/ .wgetrc .xinitrc .xmonad/ .xscreensaver .xsession .xsession-errors .xzgvrc .yi/ .zile Confidential/ Desktop/ Mail Preferences/ Public/ ///d257b36da3eb455ce42242ed8ee37ff9 16:56:10 tramp-maybe-open-connection (3) # Opening connection for dhcp9= 8 using ssh... 16:56:10 tramp-maybe-open-connection (6) # /bin/sh 16:56:10 tramp-maybe-open-connection (3) # Waiting 60s for local shell = to come up... 16:56:10 tramp-wait-for-regexp (6) #=20 $=20 16:56:11 tramp-maybe-open-connection (3) # Sending command `ssh dhcp98 = -q -e none && exit || exit' 16:56:11 tramp-send-command (6) # ssh dhcp98 -q -e none && exit || ex= it 16:56:11 tramp-process-actions (3) # Waiting for prompts from remote sh= ell 16:56:11 tramp-process-one-action (5) # Looking for regexp "\(.*ogin\( = =2E*\)?: *\)\'" from remote shell 16:56:11 tramp-process-one-action (5) # Looking for regexp "\(^.*\([pP]= assword\|[pP]assphrase\).*:=00? *\)\'" from remote shell 16:56:11 tramp-process-one-action (5) # Call `tramp-action-password' 16:56:11 tramp-action-password (3) # Sending password ------------=_1238565907-13449-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 1 Apr 2009 00:11:43 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n310BZki022134 for ; Tue, 31 Mar 2009 17:11:36 -0700 Received: from mail.gnu.org ([199.232.76.166]:57317 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Loo3K-0001Y2-DT for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 20:11:34 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Loo3H-0003xT-R2 for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 20:11:34 -0400 Received: from ti-out-0910.google.com ([209.85.142.188]:22152) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Loo3H-0003xC-1Y for emacs-pretest-bug@gnu.org; Tue, 31 Mar 2009 20:11:31 -0400 Received: by ti-out-0910.google.com with SMTP id y8so1776388tia.10 for ; Tue, 31 Mar 2009 17:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:cc :subject; bh=MoqKzjcSigCM7mVDNnmfiOHrLGmS4Udi8mudvg9A+d0=; b=sVEDYivuhx/BGMkAKFqInVdlsO3NSTt4N6hzj9X+0TUPLxwuq0piiJzIZjKClJAa3T DuQMC0qsUXdCdGZP+plChfvLe5p4HAhlekndJ1J4aVWvGIDVZtbr2YMxt94zIXWsAihq eAxWgKJsjsU9X+HpLsY3xUxh2392InU04OPb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:cc:subject; b=DGZ16LvO6Ybv4xQJjVClSdaskBWvu7rRxyfBXSE+a3j9zxFxaQguHIGbwWX7adSEsv 2KujddfDWx2wBnw0C1jkwhpdnr0/STzkU4BrC7hSB4iRvDbx9wAgAI/6DBl3dgg3jb4n NBrvMCMJhm1wRqOFyeJcPI+uktetp+kl0zXk0= Received: by 10.110.16.15 with SMTP id 15mr10434863tip.53.1238544687184; Tue, 31 Mar 2009 17:11:27 -0700 (PDT) Received: from localhost (nat064.cyber.com.au [203.7.155.64]) by mx.google.com with ESMTPS id d7sm1287161tib.22.2009.03.31.17.11.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 17:11:26 -0700 (PDT) Message-ID: <49d2b12e.07506e0a.7300.2f6e@mx.google.com> Date: Tue, 31 Mar 2009 17:11:26 -0700 (PDT) From: trentbuck@gmail.com To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org Subject: 23.0.91; tramp: ssh passphrase vs. password X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Just now I tried to open /ssh:dhcp98:/ and it asked me for "dhcp98's password". It *should* have asked me for the passphrase for one of my SSH keys (id_rsa). This either means that the prompt is misleading (i.e. it wants my passphrase) or worse, that it genuinely wants to use password-based authentication (i.e. ignoring my key). In GNU Emacs 23.0.91.1 (i486-pc-linux-gnu) of 2009-03-30 on elegiac, modified by Debian (emacs-snapshot package, version 1:20090329-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.91/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.91/site-lisp:/usr/share/emacs/site-lisp' '--with-x=no' '--without-dbus' '--without-sound' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_AU.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: rcirc Minor modes in effect: rcirc-track-minor-mode: t savehist-mode: t shell-dirtrack-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t delete-selection-mode: t use-hard-newlines: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-g C-g C-g C-x C-f C-f ESC O A C-g C-x C-f / s C-g ESC x r e p o r t SPC e m a c s SPC b u g RET Recent messages: Saving file /home/twb/.newsrc.eld... Wrote /home/twb/.newsrc.eld Saving /home/twb/.newsrc.eld...done Loading tramp...done Tramp: Opening connection for dhcp98 using ssh... Tramp: Waiting 60s for local shell to come up... Tramp: Sending command `ssh dhcp98 -q -e none && exit || exit' Tramp: Waiting for prompts from remote shell Tramp: Sending password Quit [4 times] Quit ------------=_1238565907-13449-1--