Michael Albinus | 11 Mar 2011 20:36
Picon
Picon
Gravatar

Re: Using TRAMP on Windows

Eli Zaretskii <eliz <at> gnu.org> writes:

>> If the username is ommitted, it makes the assumption that the
>> username is the same as the windows domain user.
>
> Which is usually a bad assumption.

It depends.

However, it is configurable in `tramp-default-user-alist'. I'm not using
MS Windows myself; if you tell me we should drop this default for plink
and pscp, it could be done easily.

Best regards, Michael.

[Cc to tramp-devel]
Michael Albinus | 11 Mar 2011 20:40
Picon
Picon
Gravatar

Re: Using TRAMP on Windows

Richard Riley <rileyrg <at> googlemail.com> writes:

>>> If the username is ommitted, it makes the assumption that the
>>> username is the same as the windows domain user.
>>
>> Which is usually a bad assumption.
>
> Why?
>
> If the user name is omitted I think it's a sane assumption and ties in with how
> ssh works for example.

We have dropped this default for ssh some weeks ago. It is not a sane
assumption to give ssh this value as argument; it overwrites settings in
~/.ssh/config. And in case there is no argument and no config setting,
ssh assumes the local user name by default, which is sane.

I don't know which username plink is assuming if no user is given as
parameter.

Best regards, Michael.
Eli Zaretskii | 11 Mar 2011 20:46
Picon

Re: Using TRAMP on Windows

> From: Michael Albinus <michael.albinus <at> gmx.de>
> Cc: help-gnu-emacs <at> gnu.org, tramp-devel <at> gnu.org
> Date: Fri, 11 Mar 2011 20:36:03 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> If the username is ommitted, it makes the assumption that the
> >> username is the same as the windows domain user.
> >
> > Which is usually a bad assumption.
> 
> It depends.
> 
> However, it is configurable in `tramp-default-user-alist'. I'm not using
> MS Windows myself; if you tell me we should drop this default for plink
> and pscp, it could be done easily.

I don't see a reason to drop it, as that is what plink does outside
Emacs, too.
Eli Zaretskii | 11 Mar 2011 21:08
Picon

Re: Using TRAMP on Windows

> From: Michael Albinus <michael.albinus <at> gmx.de>
> Date: Fri, 11 Mar 2011 20:40:53 +0100
> Cc: help-gnu-emacs <at> gnu.org, tramp-devel <at> gnu.org
> 
> I don't know which username plink is assuming if no user is given as
> parameter.

As already written here, it uses the Windows username of the current
user.
Michael Albinus | 12 Mar 2011 14:04
Picon
Picon
Gravatar

Tramp 2.1.20

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.sources as well.

Hello,

The Tramp team is happy to announce the release of Tramp 2.1.20.

Tramp is a remote file editing package for GNU Emacs and XEmacs.  Tramp
uses different methods like ssh or scp to access files on remote hosts
as if they were local files.  Access to the remote file system for
editing files, version control, directory editing and running processes
on the remote host are transparently enabled.

Tramp 2.1.20 is a bug fix release.  It is identical to the Tramp files
released with GNU Emacs 23.3.  Due to license problems, the XEmacs
package repository is not updated.

The download files are located at ftp://ftp.gnu.org/gnu/tramp/

Tramp's homepage is http://www.gnu.org/software/tramp/ (for GNU Emacs)
or http://www.gnu.org/software/tramp/tramp-xemacs.html (for XEmacs),
respectively.

Best regards, Michael.
Michael Albinus | 12 Mar 2011 16:51
Picon
Picon
Gravatar

Tramp 2.2.1

The following message is a courtesy copy of an article
that has been posted to gnu.emacs.sources as well.

Hello,

The Tramp team is happy to announce the release of Tramp 2.2.1.

Tramp is a remote file editing package for Emacs and XEmacs.  Tramp uses
different methods like ssh or scp to access files on remote hosts as if
they were local files.  Access to the remote file system for editing
files, version control, directory editing and running processes on the
remote host are transparently enabled.

Compared with Tramp 2.2.0, the access methods "imap" and "imaps" are
removed.  OTOH, there is a new access method "ksu" (kerberized su).
Several bug fixes are applied as well.

Tramp 2.2.1 supports Emacs since version 22 and XEmacs since version
21.4.  This is still a test version of Tramp, it is not intended to be
used in production systems yet.

This release is merged into the Emacs 24 repository.  Due to license
problems, the XEmacs package repository is not updated.

The download files are located at ftp://ftp.gnu.org/gnu/tramp/

Tramp's homepage is http://www.gnu.org/software/tramp/ (for Emacs) or
http://www.gnu.org/software/tramp/tramp-xemacs.html (for XEmacs),
respectively.

(Continue reading)

Chow Loong Jin | 27 Mar 2011 07:32
Picon

tramp (2.2.1); Tramp hangs while trying to connect


Enter your bug report in this message, including as much detail
as you possibly can about the problem, what you did to cause it
and what the local and remote machines are.

If you can give a simple set of instructions to make this bug
happen reliably, please include those.  Thank you for helping
kill bugs in Tramp.

Before reproducing the bug, you might apply

  M-x tramp-cleanup-all-connections

This allows to investigate from a clean environment.  Another
useful thing to do is to put

  (setq tramp-verbose 9)

in the ~/.emacs file and to repeat the bug.  Then, include the
contents of the *tramp/foo* buffer and the *debug tramp/foo*
buffer in your bug report.

--bug report follows this line--

When connecting to a remote host, Tramp hangs, showing the rotating
progress indicator. However, the process that Tramp is supposed to be
executing (e.g. sudo or ssh) doesn't exist in the `ps -ef` output.
;; GNU Emacs: 24.0.50.1 Tramp: 2.2.1 -*- mode: outline; -*-
(Continue reading)

Michael Albinus | 27 Mar 2011 09:47
Picon
Picon
Gravatar

Re: tramp (2.2.1); Tramp hangs while trying to connect

Hi,

> When connecting to a remote host, Tramp hangs, showing the rotating
> progress indicator. However, the process that Tramp is supposed to be
> executing (e.g. sudo or ssh) doesn't exist in the `ps -ef` output.

According to your traces, Tramp is blocked already after applying the local "/bin/sh" command, not
recognising the returned prompt. But the prompt looks OK.

I'm currently on a business trip, not returning before next weekend. This hinders me a little bit in analyzing.

Could you, please, check whether Tramp works better when starting "emacs -Q"? And I'ld like also to see the
contents of the *tramp/sudo root <at> ipwn* buffer, send as encoded enclosure in your email (I need to check
for possible control characters).

> Kind regards,
> Loong Jin

Best regards, Michael.

--

-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
Chow Loong Jin | 27 Mar 2011 13:14
Picon

Re: tramp (2.2.1); Tramp hangs while trying to connect

On Sunday 27,March,2011 03:47 PM, Michael Albinus wrote:
> Hi,
> 
>> When connecting to a remote host, Tramp hangs, showing the rotating
>> progress indicator. However, the process that Tramp is supposed to be
>> executing (e.g. sudo or ssh) doesn't exist in the `ps -ef` output.
> 
> According to your traces, Tramp is blocked already after applying the local "/bin/sh" command, not
recognising the returned prompt. But the prompt looks OK.
> 
> I'm currently on a business trip, not returning before next weekend. This hinders me a little bit in analyzing.
> 
> Could you, please, check whether Tramp works better when starting "emacs -Q"? And I'ld like also to see the
contents of the *tramp/sudo root <at> ipwn* buffer, send as encoded enclosure in your email (I need to check
for possible control characters).
> 
>> Kind regards,
>> Loong Jin
> 
> Best regards, Michael.
> 
> 

Okay, I've just figured out what went wrong -- I customized the variable
"tramp-shell-prompt-pattern" from some time back, and recently upgraded to
emacs24. Sorry for the noise.

--

-- 
Kind regards,
Loong Jin
(Continue reading)

Michael Albinus | 27 Mar 2011 19:03
Picon
Picon
Gravatar

Re: tramp (2.2.1); Tramp hangs while trying to connect

> Okay, I've just figured out what went wrong -- I customized the variable
> "tramp-shell-prompt-pattern" from some time back, and recently upgraded to
> emacs24. Sorry for the noise.

Don't worry, it's always better to send a false alarm but to give up.

> Kind regards,
> Loong Jin

Best regards, Michael.
--

-- 
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit 
gratis Handy-Flat! http://portal.gmx.net/de/go/dsl

Gmane