GNU bug report logs - #10530
24.0.92; tramp does not connect when username is not specified with plink

Previous Next

Package: emacs;

Reported by: Christoph Scholtes <cschol2112 <at> googlemail.com>

Date: Tue, 17 Jan 2012 04:03:02 UTC

Severity: normal

Found in version 24.0.92

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10530 in the body.
You can then email your comments to 10530 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10530; Package emacs. (Tue, 17 Jan 2012 04:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christoph Scholtes <cschol2112 <at> googlemail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 17 Jan 2012 04:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christoph Scholtes <cschol2112 <at> googlemail.com>
To: bug-gnu-emacs <at> gnu.org
Cc: Michael Albinus <michael.albinus <at> gmx.de>
Subject: 24.0.92; tramp does not connect when username is not specified with
	plink
Date: Mon, 16 Jan 2012 21:01:13 -0700
With Emacs trunk r106887 on Windows 7 I use tramp to connect to a remote
machine via plink v0.62.

My tramp configuration:
(require 'tramp)
(setq tramp-default-method "plink")
(setq tramp-verbose 6)
(setq tramp-debug-buffer t)

When I access the file as follows

C-x-f, then /localhost#2222:

tramp asks for a username and the a password. Then the password prompt
keeps popping up over and over again. It never establishes a connection
it seems. I have to abort with C-g.

When I access the file like this

C-x-f, then /cschol <at> localhost#2222:

it asks for a passwords and connects right away.

Michael,
please let me know what kind of information I can provide to help debug
this. Thank you.


In GNU Emacs 24.0.92.1 (i386-mingw-nt6.1.7601)
 of 2012-01-16 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
configured using `configure --with-gcc (4.6) --no-opt --cflags 
-ID:/devel/emacs/libs/libXpm-3.5.8/include 
-ID:/devel/emacs/libs/libXpm-3.5.8/src 
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include 
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include 
-ID:/devel/emacs/libs/giflib-4.1.4-1/include 
-ID:/devel/emacs/libs/jpeg-6b-4/include 
-ID:/devel/emacs/libs/tiff-3.8.2-1/include 
-ID:/devel/emacs/libs/gnutls-3.0.9/include --ldflags 
-LD:/devel/emacs/libs/gnutls-3.0.9/lib'




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10530; Package emacs. (Tue, 17 Jan 2012 11:25:01 GMT) Full text and rfc822 format available.

Message #8 received at 10530 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Christoph Scholtes <cschol2112 <at> googlemail.com>
Cc: 10530 <at> debbugs.gnu.org
Subject: Re: bug#10530: 24.0.92;
	tramp does not connect when username is not specified with plink
Date: Tue, 17 Jan 2012 12:22:54 +0100
Christoph Scholtes <cschol2112 <at> googlemail.com> writes:

Hi Christoph,

> When I access the file as follows
>
> C-x-f, then /localhost#2222:
>
> tramp asks for a username and the a password. Then the password prompt
> keeps popping up over and over again. It never establishes a connection
> it seems. I have to abort with C-g.
>
> Michael,
> please let me know what kind of information I can provide to help debug
> this. Thank you.

It's an eol issue. I have committed a fix to the trunk. Could you,
please, check?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10530; Package emacs. (Wed, 18 Jan 2012 02:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 10530 <at> debbugs.gnu.org (full text, mbox):

From: Christoph Scholtes <cschol2112 <at> googlemail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 10530 <at> debbugs.gnu.org
Subject: Re: bug#10530: 24.0.92; tramp does not connect when username is not
	specified with plink
Date: Tue, 17 Jan 2012 19:10:49 -0700
Hallo Michael,

On 1/17/2012 4:22 AM, Michael Albinus wrote:

> It's an eol issue. I have committed a fix to the trunk. Could you,
> please, check?

It now connects. I see the prompt of the remote shell in the debug log, 
but then it asks me again for a password with my username reset to my 
default username and port, i.e. Christoph <at> localhost.

Snippet from debug log:

18:54:29.900000 tramp-process-actions (6) #
cschol <at> localhost's password:
Linux debian 3.1.0-1-486 #1 Tue Jan 10 04:55:10 UTC 2012 i686

[snip, some welcome message stuff]

]0;cschol <at> debian: ~cschol <at> debian:~$
18:54:29.903000 tramp-maybe-open-connection (3) # Found remote shell 
prompt on `localhost'
18:54:29.903000 tramp-open-shell (5) # Opening remote shell `/bin/sh'...
18:54:29.904000 tramp-send-command (6) # exec env ENV='' 
PROMPT_COMMAND='' PS1=\#\$\  PS2='' PS3='' /bin/sh
18:54:30.031000 tramp-send-command (6) # PS1=\#\$\
18:54:30.085000 tramp-send-command (6) # PS2=''
18:54:30.139000 tramp-send-command (6) # PS3=''
18:54:30.207000 tramp-send-command (6) # PROMPT_COMMAND=''
18:54:30.263000 tramp-open-shell (5) # Opening remote shell `/bin/sh'...done
18:54:30.263000 tramp-open-connection-setup-interactive-shell (5) # 
Setting up remote shell environment
18:54:30.263000 tramp-send-command (6) # stty -inlcr -echo kill '^U' 
erase '^H'
18:54:30.317000 tramp-send-command (6) # echo foo
18:54:30.371000 tramp-open-connection-setup-interactive-shell (5) # 
Setting shell prompt
18:54:30.371000 tramp-send-command (6) # 
PS1=///4fc24703080ea6a218e7e620ade61c8c\#\$
18:54:30.427000 tramp-send-command (6) # PS2=''
18:54:30.482000 tramp-send-command (6) # PS3=''
18:54:30.538000 tramp-send-command (6) # PROMPT_COMMAND=''
18:54:30.593000 tramp-open-connection-setup-interactive-shell (5) # 
Determining coding system
18:54:30.593000 tramp-send-command (6) # echo foo ; echo bar
18:54:30.649000 tramp-open-connection-setup-interactive-shell (5) # 
Setting coding system to `undecided-dos' and `iso-latin-1-unix'
18:54:30.650000 tramp-send-command (6) # set +o vi +o emacs
18:54:30.705000 tramp-open-connection-setup-interactive-shell (5) # 
Checking system information
18:54:30.706000 tramp-send-command (6) # echo \"`uname -sr`\" 
2>/dev/null; echo tramp_exit_status $?
18:54:30.774000 tramp-open-connection-setup-interactive-shell (5) # 
Checking remote host type for `send-process-string' bug
18:54:30.775000 tramp-set-remote-path (5) # Setting $PATH environment 
variable
18:54:30.775000 tramp-send-command (6) # echo \"`getconf PATH 
2>/dev/null`\" 2>/dev/null; echo tramp_exit_status $?

This is where it hangs until C-g.

Again, with C-x-f /cschol <at> localhost#2222: it works fine.

Thanks for your help.

Christoph





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10530; Package emacs. (Wed, 18 Jan 2012 12:35:01 GMT) Full text and rfc822 format available.

Message #14 received at 10530 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Christoph Scholtes <cschol2112 <at> googlemail.com>
Cc: 10530 <at> debbugs.gnu.org
Subject: Re: bug#10530: 24.0.92;
	tramp does not connect when username is not specified with plink
Date: Wed, 18 Jan 2012 13:33:42 +0100
Christoph Scholtes <cschol2112 <at> googlemail.com> writes:

> Hallo Michael,

Hi Christoph,

> It now connects. I see the prompt of the remote shell in the debug
> log, but then it asks me again for a password with my username reset
> to my default username and port, i.e. Christoph <at> localhost.
>
> Snippet from debug log:

Neither I see a new password request, nor I see a connection as user
"Christoph". And it did some initialization actions, until it hung.

Unfortunately, you haven't shown the whole trace, which makes it hard to
follow the complete flow inside Tramp.

Could you, please, rerun a clean test:

- Stop Emacs
- Remove file ~/.emacs.d/tramp (which keeps cached values)
- Start "emacs -Q"
- Make your settings, like (setq tramp-verbose 6)
- Rerun your test
- Show the complete debug buffer

If the debug buffer contains sensitive information, you could send it
off-list. It doesn't contain passwords, 'tho.

> Thanks for your help.
>
> Christoph

Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Mon, 23 Jan 2012 07:40:02 GMT) Full text and rfc822 format available.

Notification sent to Christoph Scholtes <cschol2112 <at> googlemail.com>:
bug acknowledged by developer. (Mon, 23 Jan 2012 07:40:02 GMT) Full text and rfc822 format available.

Message #19 received at 10530-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Christoph Scholtes <cschol2112 <at> googlemail.com>
Cc: 10530-done <at> debbugs.gnu.org
Subject: Re: bug#10530: 24.0.92;
	tramp does not connect when username is not specified with plink
Date: Mon, 23 Jan 2012 08:38:50 +0100
Christoph Scholtes <cschol2112 <at> googlemail.com> writes:

> On 1/22/2012 5:58 AM, Michael Albinus wrote:
>
>> I've committed a patch to the trunk, which ought to implement this. Could
>> you, please, check?
>
> Works great. Thank you very much for working on this. The bug report
> can be closed.

Done.

> Christoph

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 20 Feb 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.