unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#2837: 23.0.91; tramp: ssh passphrase vs. password
@ 2009-04-01  0:11 trentbuck
  0 siblings, 0 replies; 4+ messages in thread
From: trentbuck @ 2009-04-01  0:11 UTC (permalink / raw)
  To: emacs-pretest-bug; +Cc: rfrancoise

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#2837: 23.0.91; tramp: ssh passphrase vs. password
       [not found] <mailman.4350.1238545438.31690.bug-gnu-emacs@gnu.org>
@ 2009-04-01  4:59 ` Michael Albinus
  2009-04-01  5:19   ` Trent W. Buck
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Albinus @ 2009-04-01  4:59 UTC (permalink / raw)
  To: trentbuck; +Cc: 2837, rfrancoise

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.






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#2837: 23.0.91; tramp: ssh passphrase vs. password
  2009-04-01  4:59 ` bug#2837: 23.0.91; tramp: ssh passphrase vs. password Michael Albinus
@ 2009-04-01  5:19   ` Trent W. Buck
  2009-04-01  5:43     ` Michael Albinus
  0 siblings, 1 reply; 4+ messages in thread
From: Trent W. Buck @ 2009-04-01  5:19 UTC (permalink / raw)
  To: Michael Albinus; +Cc: 2837, rfrancoise

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':






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#2837: 23.0.91; tramp: ssh passphrase vs. password
  2009-04-01  5:19   ` Trent W. Buck
@ 2009-04-01  5:43     ` Michael Albinus
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Albinus @ 2009-04-01  5:43 UTC (permalink / raw)
  To: Trent W. Buck; +Cc: 2837, rfrancoise

"Trent W. Buck" <trentbuck@gmail.com> 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.






^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-01  5:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.4350.1238545438.31690.bug-gnu-emacs@gnu.org>
2009-04-01  4:59 ` bug#2837: 23.0.91; tramp: ssh passphrase vs. password Michael Albinus
2009-04-01  5:19   ` Trent W. Buck
2009-04-01  5:43     ` Michael Albinus
2009-04-01  0:11 trentbuck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).