all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using TRAMP on Windows
@ 2011-03-11 10:00 Deniz Dogan
  2011-03-11 10:09 ` Deniz Dogan
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Deniz Dogan @ 2011-03-11 10:00 UTC (permalink / raw)
  To: emacs-help

Hi,

I'm using:
GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-02-08 on 3249CTO.

I'm trying to edit some file on a server using TRAMP (SSH):

C-x C-f /theserver:.emacs

It asks me for the login name and the password, I type them in
correctly, but the password is not accepted.  This all works fine when
I connect using SSH in PuTTY.

What am I doing wrong?  I have not modified any TRAMP settings.

Thanks,
Deniz Dogan



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

* Re: Using TRAMP on Windows
  2011-03-11 10:00 Using TRAMP on Windows Deniz Dogan
@ 2011-03-11 10:09 ` Deniz Dogan
  2011-03-11 17:59   ` Michael Albinus
  2011-03-11 10:25 ` Jonathan Groll
  2011-03-11 10:28 ` Eli Zaretskii
  2 siblings, 1 reply; 31+ messages in thread
From: Deniz Dogan @ 2011-03-11 10:09 UTC (permalink / raw)
  To: emacs-help

2011/3/11 Deniz Dogan <deniz.a.m.dogan@gmail.com>:
> Hi,
>
> I'm using:
> GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-02-08 on 3249CTO.
>
> I'm trying to edit some file on a server using TRAMP (SSH):
>
> C-x C-f /theserver:.emacs
>
> It asks me for the login name and the password, I type them in
> correctly, but the password is not accepted.  This all works fine when
> I connect using SSH in PuTTY.
>
> What am I doing wrong?  I have not modified any TRAMP settings.
>

It seems to be using plink by the way, which I have on my PATH.

11:07:49.497000 tramp-maybe-open-connection (3) # Opening connection
for theserver using pscp...
11:07:49.509000 tramp-maybe-open-connection (6) # C:\Windows\system32\cmd.exe
11:07:49.577000 tramp-maybe-open-connection (3) # Sending command
`plink   -ssh theserver && exit || exit'
11:07:49.577000 tramp-send-command (6) # plink   -ssh theserver && exit || exit

Doing "plink -ssh theserver" in cmd.exe myself and entering the login
details works just fine, I get a shell and everything.

-- 
Deniz Dogan



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

* Re: Using TRAMP on Windows
  2011-03-11 10:00 Using TRAMP on Windows Deniz Dogan
  2011-03-11 10:09 ` Deniz Dogan
@ 2011-03-11 10:25 ` Jonathan Groll
  2011-03-11 10:28 ` Eli Zaretskii
  2 siblings, 0 replies; 31+ messages in thread
From: Jonathan Groll @ 2011-03-11 10:25 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 11 Mar 2011 11:00:14 +0100, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:

> Hi,
> 
> I'm using:
> GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-02-08 on 3249CTO.
> 
> I'm trying to edit some file on a server using TRAMP (SSH):
> 
> C-x C-f /theserver:.emacs
> 
> It asks me for the login name and the password, I type them in
> correctly, but the password is not accepted.  This all works fine when
> I connect using SSH in PuTTY.

Hi Deniz

I've had problems with specifying the port with plink, so if I wanted
to connect to a host on port 2222 it would need something like

/plink:jonathan@host#2222:.emacs

Cheers,
Jonathan
--
jjg: Jonathan J. Groll : groll co za
has_one { :blog => "http://bloggroll.com" }
Sent from my computer device which runs on free software



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

* Re: Using TRAMP on Windows
  2011-03-11 10:00 Using TRAMP on Windows Deniz Dogan
  2011-03-11 10:09 ` Deniz Dogan
  2011-03-11 10:25 ` Jonathan Groll
@ 2011-03-11 10:28 ` Eli Zaretskii
  2011-03-11 10:35   ` Deniz Dogan
  2 siblings, 1 reply; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 10:28 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
> Date: Fri, 11 Mar 2011 11:00:14 +0100
> 
> GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-02-08 on 3249CTO.
> 
> I'm trying to edit some file on a server using TRAMP (SSH):
> 
> C-x C-f /theserver:.emacs
> 
> It asks me for the login name and the password, I type them in
> correctly, but the password is not accepted.  This all works fine when
> I connect using SSH in PuTTY.

Does PuTTY ask for a password as well, or do you use Pageant?

> What am I doing wrong?  I have not modified any TRAMP settings.

FWIW, "C-x C-f /plink:USERNAME@SERVER:.emacs RET" works for me (with
PuTTY's plink and Pageant running).



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

* Re: Using TRAMP on Windows
  2011-03-11 10:28 ` Eli Zaretskii
@ 2011-03-11 10:35   ` Deniz Dogan
  2011-03-11 11:34     ` Eli Zaretskii
  0 siblings, 1 reply; 31+ messages in thread
From: Deniz Dogan @ 2011-03-11 10:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

2011/3/11 Eli Zaretskii <eliz@gnu.org>:
>> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
>> Date: Fri, 11 Mar 2011 11:00:14 +0100
>>
>> GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2011-02-08 on 3249CTO.
>>
>> I'm trying to edit some file on a server using TRAMP (SSH):
>>
>> C-x C-f /theserver:.emacs
>>
>> It asks me for the login name and the password, I type them in
>> correctly, but the password is not accepted.  This all works fine when
>> I connect using SSH in PuTTY.
>
> Does PuTTY ask for a password as well, or do you use Pageant?
>

PuTTY asks for both login and password, yes.

>> What am I doing wrong?  I have not modified any TRAMP settings.
>
> FWIW, "C-x C-f /plink:USERNAME@SERVER:.emacs RET" works for me (with
> PuTTY's plink and Pageant running).
>

This works for me as well, but without Pageant. So why doesn't it work
doing it the standard way?

-- 
Deniz Dogan



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

* Re: Using TRAMP on Windows
  2011-03-11 10:35   ` Deniz Dogan
@ 2011-03-11 11:34     ` Eli Zaretskii
  2011-03-11 11:58       ` Deniz Dogan
                         ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 11:34 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
> Date: Fri, 11 Mar 2011 11:35:08 +0100
> Cc: help-gnu-emacs@gnu.org
> 
> > FWIW, "C-x C-f /plink:USERNAME@SERVER:.emacs RET" works for me (with
> > PuTTY's plink and Pageant running).
> >
> 
> This works for me as well, but without Pageant. So why doesn't it work
> doing it the standard way?

Who said it doesn't?  It does for me, if I say

   C-x C-f /USERNAME@SERVER:.emacs RET

In your example, you didn't use the USERNAME@ part, perhaps that's the
reason.

Also note that by default, Tramp uses pscp, not plink (see
tramp-default-method).



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

* Re: Using TRAMP on Windows
  2011-03-11 11:34     ` Eli Zaretskii
@ 2011-03-11 11:58       ` Deniz Dogan
  2011-03-11 12:27         ` Eli Zaretskii
  2011-03-11 12:50         ` Jonathan Groll
       [not found]       ` <mailman.5.1299844760.14178.help-gnu-emacs@gnu.org>
  2011-03-11 19:20       ` Michael Albinus
  2 siblings, 2 replies; 31+ messages in thread
From: Deniz Dogan @ 2011-03-11 11:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

2011/3/11 Eli Zaretskii <eliz@gnu.org>:
>> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
>> Date: Fri, 11 Mar 2011 11:35:08 +0100
>> Cc: help-gnu-emacs@gnu.org
>>
>> > FWIW, "C-x C-f /plink:USERNAME@SERVER:.emacs RET" works for me (with
>> > PuTTY's plink and Pageant running).
>> >
>>
>> This works for me as well, but without Pageant. So why doesn't it work
>> doing it the standard way?
>
> Who said it doesn't?  It does for me, if I say
>
>   C-x C-f /USERNAME@SERVER:.emacs RET
>
> In your example, you didn't use the USERNAME@ part, perhaps that's the
> reason.
>

But TRAMP prompts me for the username when I omit it. I enter the
username and then the password but authentication fails.

-- 
Deniz Dogan



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

* Re: Using TRAMP on Windows
  2011-03-11 11:58       ` Deniz Dogan
@ 2011-03-11 12:27         ` Eli Zaretskii
  2011-03-11 19:28           ` Michael Albinus
  2011-03-11 12:50         ` Jonathan Groll
  1 sibling, 1 reply; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 12:27 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
> Date: Fri, 11 Mar 2011 12:58:54 +0100
> Cc: help-gnu-emacs@gnu.org
> 
> >   C-x C-f /USERNAME@SERVER:.emacs RET
> >
> > In your example, you didn't use the USERNAME@ part, perhaps that's the
> > reason.
> >
> 
> But TRAMP prompts me for the username when I omit it. I enter the
> username and then the password but authentication fails.

If /USERNAME@SERVER:.emacs works for you, but /SERVER:.emacs doesn't,
I guess that's some bug in Tramp that should be reported.




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

* Re: Using TRAMP on Windows
  2011-03-11 11:58       ` Deniz Dogan
  2011-03-11 12:27         ` Eli Zaretskii
@ 2011-03-11 12:50         ` Jonathan Groll
  2011-03-11 15:49           ` Eli Zaretskii
                             ` (2 more replies)
  1 sibling, 3 replies; 31+ messages in thread
From: Jonathan Groll @ 2011-03-11 12:50 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 11 Mar 2011 12:58:54 +0100, Deniz Dogan <deniz.a.m.dogan@gmail.com> wrote:

> 2011/3/11 Eli Zaretskii <eliz@gnu.org>:
> >> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
> >> Date: Fri, 11 Mar 2011 11:35:08 +0100
> >> Cc: help-gnu-emacs@gnu.org
> >>
> >> > FWIW, "C-x C-f /plink:USERNAME@SERVER:.emacs RET" works for me (with
> >> > PuTTY's plink and Pageant running).
> >> >
> >>
> >> This works for me as well, but without Pageant. So why doesn't it work
> >> doing it the standard way?
> >
> > Who said it doesn't?  It does for me, if I say
> >
> >   C-x C-f /USERNAME@SERVER:.emacs RET
> >
> > In your example, you didn't use the USERNAME@ part, perhaps that's the
> > reason.
> >
> 
> But TRAMP prompts me for the username when I omit it. I enter the
> username and then the password but authentication fails.

It doesn't prompt me for the username. If the username is ommitted, it
makes the assumption that the username is the same as the windows
domain user.

Cheers,
Jonathan
--
jjg: Jonathan J. Groll : groll co za
has_one { :blog => "http://bloggroll.com" }
Sent from my computer device which runs on free software



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

* Re: Using TRAMP on Windows
       [not found]       ` <mailman.5.1299844760.14178.help-gnu-emacs@gnu.org>
@ 2011-03-11 12:52         ` William Stevenson
  2011-03-12  9:03           ` Eli Zaretskii
  0 siblings, 1 reply; 31+ messages in thread
From: William Stevenson @ 2011-03-11 12:52 UTC (permalink / raw)
  To: help-gnu-emacs

Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:

> 2011/3/11 Eli Zaretskii <eliz@gnu.org>:
>>> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
>>> Date: Fri, 11 Mar 2011 11:35:08 +0100
>>> Cc: help-gnu-emacs@gnu.org
>>>
>>> > FWIW, "C-x C-f /plink:USERNAME@SERVER:.emacs RET" works for me (with
>>> > PuTTY's plink and Pageant running).
>>> >
>>>
>>> This works for me as well, but without Pageant. So why doesn't it work
>>> doing it the standard way?
>>
>> Who said it doesn't?  It does for me, if I say
>>
>>   C-x C-f /USERNAME@SERVER:.emacs RET
>>
>> In your example, you didn't use the USERNAME@ part, perhaps that's the
>> reason.
>>
>
> But TRAMP prompts me for the username when I omit it. I enter the
> username and then the password but authentication fails.

I use TRAMP on windows, here's what I have in my .emacs

(require 'tramp)
(setq tramp-auto-save-directory "c:\\tmp")
(setq tramp-default-method "plink")
(setq tramp-default-user "username"
      tramp-default-host "xx.xx.xx.xx")
 (add-to-list  'file-coding-system-alist
	       `(,tramp-file-name-regexp . raw-text-unix))


Hope that helps.


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

* Re: Using TRAMP on Windows
  2011-03-11 12:50         ` Jonathan Groll
@ 2011-03-11 15:49           ` Eli Zaretskii
  2011-03-11 19:36             ` Michael Albinus
       [not found]           ` <mailman.5.1299858579.20707.help-gnu-emacs@gnu.org>
  2011-03-11 19:29           ` Michael Albinus
  2 siblings, 1 reply; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 15:49 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 11 Mar 2011 14:50:58 +0200
> From: Jonathan Groll <lists@groll.co.za>
> 
> > But TRAMP prompts me for the username when I omit it. I enter the
> > username and then the password but authentication fails.
> 
> It doesn't prompt me for the username.

Perhaps because you defined a fixed user name to use in the PuTTY
session for that server.  In that case, plink and pscp take the user
name from there.

> 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.



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

* Re: Using TRAMP on Windows
       [not found]           ` <mailman.5.1299858579.20707.help-gnu-emacs@gnu.org>
@ 2011-03-11 16:25             ` Richard Riley
  2011-03-11 16:53               ` Eli Zaretskii
  2011-03-11 19:40               ` Michael Albinus
  0 siblings, 2 replies; 31+ messages in thread
From: Richard Riley @ 2011-03-11 16:25 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> Date: Fri, 11 Mar 2011 14:50:58 +0200
>> From: Jonathan Groll <lists@groll.co.za>
>> 
>> > But TRAMP prompts me for the username when I omit it. I enter the
>> > username and then the password but authentication fails.
>> 
>> It doesn't prompt me for the username.
>
> Perhaps because you defined a fixed user name to use in the PuTTY
> session for that server.  In that case, plink and pscp take the user
> name from there.
>
>> 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.



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

* Re: Using TRAMP on Windows
  2011-03-11 16:25             ` Richard Riley
@ 2011-03-11 16:53               ` Eli Zaretskii
  2011-03-11 19:40               ` Michael Albinus
  1 sibling, 0 replies; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 16:53 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Richard Riley <rileyrg@googlemail.com>
> Date: Fri, 11 Mar 2011 17:25:55 +0100
> 
> >> 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?

Because a Windows user name will seldom match the name of the same
user on a Unix system.

> If the user name is omitted I think it's a sane assumption and ties in with how
> ssh works for example.

It is sane assumption on Unix.  On Windows, it's just the only thing
PuTTY can do, but it will more often than not fail.



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

* Re: Using TRAMP on Windows
  2011-03-11 10:09 ` Deniz Dogan
@ 2011-03-11 17:59   ` Michael Albinus
  2011-03-11 19:08     ` Deniz Dogan
  0 siblings, 1 reply; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 17:59 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: emacs-help

Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:

> It seems to be using plink by the way, which I have on my PATH.
>
> 11:07:49.497000 tramp-maybe-open-connection (3) # Opening connection
> for theserver using pscp...
> 11:07:49.509000 tramp-maybe-open-connection (6) # C:\Windows\system32\cmd.exe
> 11:07:49.577000 tramp-maybe-open-connection (3) # Sending command
> `plink   -ssh theserver && exit || exit'
> 11:07:49.577000 tramp-send-command (6) # plink   -ssh theserver && exit || exit

Are there more traces in the debug buffer? And what's the contents of
the "*tramp/pscp theserver*" buffer?

> Doing "plink -ssh theserver" in cmd.exe myself and entering the login
> details works just fine, I get a shell and everything.

Best regards, Michael.



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

* Re: Using TRAMP on Windows
  2011-03-11 17:59   ` Michael Albinus
@ 2011-03-11 19:08     ` Deniz Dogan
  2011-03-11 19:24       ` Michael Albinus
  0 siblings, 1 reply; 31+ messages in thread
From: Deniz Dogan @ 2011-03-11 19:08 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-help

2011/3/11 Michael Albinus <michael.albinus@gmx.de>:
> Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
>
>> It seems to be using plink by the way, which I have on my PATH.
>>
>> 11:07:49.497000 tramp-maybe-open-connection (3) # Opening connection
>> for theserver using pscp...
>> 11:07:49.509000 tramp-maybe-open-connection (6) # C:\Windows\system32\cmd.exe
>> 11:07:49.577000 tramp-maybe-open-connection (3) # Sending command
>> `plink   -ssh theserver && exit || exit'
>> 11:07:49.577000 tramp-send-command (6) # plink   -ssh theserver && exit || exit
>
> Are there more traces in the debug buffer? And what's the contents of
> the "*tramp/pscp theserver*" buffer?
>

The contents are:

plink   -ssh www.theserver.com && exit || exit
login as:

There are more traces in the debug buffer, I have tramp-verbose set to
6. The most interesting find I did was this:

webtheserver@www.theserver.com's password:
webtheserver@www.theserver.com's password:
webtheserver@www.theserver.com's password:
webtheserver@www.theserver.com's password:
webtheserver@www.theserver.com's password:
webtheserver@www.theserver.com's password:
webtheserver@www.theserver.com's password:
Access denied
Access denied
Access denied
Access denied
Access denied
Access denied
FATAL ERROR: Server sent disconnect message
type 2 (protocol error):
"Too many authentication failures for webtheserver"

Process *tramp/pscp www.theserver.com* exited abnormally with code 1

What's really weird about this is the fact that I'm logging in with
the username "webtheserver1", not "webtheserver" as shown in the log!

-- 
Deniz Dogan



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

* Re: Using TRAMP on Windows
  2011-03-11 11:34     ` Eli Zaretskii
  2011-03-11 11:58       ` Deniz Dogan
       [not found]       ` <mailman.5.1299844760.14178.help-gnu-emacs@gnu.org>
@ 2011-03-11 19:20       ` Michael Albinus
  2 siblings, 0 replies; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:20 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

> Also note that by default, Tramp uses pscp, not plink (see
> tramp-default-method).

pscp is used for copying files. Login is still performed via plink.

Best regards, Michael.



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

* Re: Using TRAMP on Windows
  2011-03-11 19:08     ` Deniz Dogan
@ 2011-03-11 19:24       ` Michael Albinus
  2011-03-11 19:39         ` Deniz Dogan
  0 siblings, 1 reply; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:24 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: emacs-help

Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:

> The contents are:
>
> plink   -ssh www.theserver.com && exit || exit
> login as:
>
> There are more traces in the debug buffer, I have tramp-verbose set to
> 6. The most interesting find I did was this:
>
> webtheserver@www.theserver.com's password:
> webtheserver@www.theserver.com's password:
> webtheserver@www.theserver.com's password:
> webtheserver@www.theserver.com's password:
> webtheserver@www.theserver.com's password:
> webtheserver@www.theserver.com's password:
> webtheserver@www.theserver.com's password:
> Access denied
> Access denied
> Access denied
> Access denied
> Access denied
> Access denied
> FATAL ERROR: Server sent disconnect message
> type 2 (protocol error):
> "Too many authentication failures for webtheserver"
>
> Process *tramp/pscp www.theserver.com* exited abnormally with code 1
>
> What's really weird about this is the fact that I'm logging in with
> the username "webtheserver1", not "webtheserver" as shown in the log!

Have you been asked for the password?

If not, likely auth-source.el is in action, trying to read a password
from whatever you have specified in auth-sources.

Best regards, Michael.



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

* Re: Using TRAMP on Windows
  2011-03-11 12:27         ` Eli Zaretskii
@ 2011-03-11 19:28           ` Michael Albinus
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Deniz Dogan <deniz.a.m.dogan@gmail.com>
>> Date: Fri, 11 Mar 2011 12:58:54 +0100
>> Cc: help-gnu-emacs@gnu.org
>> 
>> >   C-x C-f /USERNAME@SERVER:.emacs RET
>> >
>> > In your example, you didn't use the USERNAME@ part, perhaps that's the
>> > reason.
>> >
>> 
>> But TRAMP prompts me for the username when I omit it. I enter the
>> username and then the password but authentication fails.
>
> If /USERNAME@SERVER:.emacs works for you, but /SERVER:.emacs doesn't,
> I guess that's some bug in Tramp that should be reported.

Yes, looks like this. I would like to see Tramp's traces (with
tramp-verbose set to 6) in both cases, the successful and the failing
one.

Best regards, Michael.



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

* Re: Using TRAMP on Windows
  2011-03-11 12:50         ` Jonathan Groll
  2011-03-11 15:49           ` Eli Zaretskii
       [not found]           ` <mailman.5.1299858579.20707.help-gnu-emacs@gnu.org>
@ 2011-03-11 19:29           ` Michael Albinus
  2 siblings, 0 replies; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:29 UTC (permalink / raw)
  To: Jonathan Groll; +Cc: help-gnu-emacs

Jonathan Groll <lists@groll.co.za> writes:

>> But TRAMP prompts me for the username when I omit it. I enter the
>> username and then the password but authentication fails.
>
> It doesn't prompt me for the username. If the username is ommitted, it
> makes the assumption that the username is the same as the windows
> domain user.

Both cases can happen. It depends on the configuration of putty.

> Cheers,
> Jonathan

Best regards, Michael.



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

* Re: Using TRAMP on Windows
  2011-03-11 15:49           ` Eli Zaretskii
@ 2011-03-11 19:36             ` Michael Albinus
  2011-03-11 19:46               ` Eli Zaretskii
       [not found]               ` <mailman.16.1299872811.6879.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:36 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs, tramp-devel

Eli Zaretskii <eliz@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]

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

* Re: Using TRAMP on Windows
  2011-03-11 19:24       ` Michael Albinus
@ 2011-03-11 19:39         ` Deniz Dogan
  2011-03-11 19:46           ` Michael Albinus
       [not found]           ` <mailman.15.1299872788.6879.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 31+ messages in thread
From: Deniz Dogan @ 2011-03-11 19:39 UTC (permalink / raw)
  To: Michael Albinus; +Cc: emacs-help

2011/3/11 Michael Albinus <michael.albinus@gmx.de>:
> Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
>
>> The contents are:
>>
>> plink   -ssh www.theserver.com && exit || exit
>> login as:
>>
>> There are more traces in the debug buffer, I have tramp-verbose set to
>> 6. The most interesting find I did was this:
>>
>> webtheserver@www.theserver.com's password:
>> webtheserver@www.theserver.com's password:
>> webtheserver@www.theserver.com's password:
>> webtheserver@www.theserver.com's password:
>> webtheserver@www.theserver.com's password:
>> webtheserver@www.theserver.com's password:
>> webtheserver@www.theserver.com's password:
>> Access denied
>> Access denied
>> Access denied
>> Access denied
>> Access denied
>> Access denied
>> FATAL ERROR: Server sent disconnect message
>> type 2 (protocol error):
>> "Too many authentication failures for webtheserver"
>>
>> Process *tramp/pscp www.theserver.com* exited abnormally with code 1
>>
>> What's really weird about this is the fact that I'm logging in with
>> the username "webtheserver1", not "webtheserver" as shown in the log!
>
> Have you been asked for the password?
>
> If not, likely auth-source.el is in action, trying to read a password
> from whatever you have specified in auth-sources.
>

Yes, I'm asked for the password and I'm entering it correctly.

-- 
Deniz Dogan



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

* Re: Using TRAMP on Windows
  2011-03-11 16:25             ` Richard Riley
  2011-03-11 16:53               ` Eli Zaretskii
@ 2011-03-11 19:40               ` Michael Albinus
  2011-03-11 20:08                 ` Eli Zaretskii
  1 sibling, 1 reply; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:40 UTC (permalink / raw)
  To: Richard Riley; +Cc: help-gnu-emacs, tramp-devel

Richard Riley <rileyrg@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.

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

* Re: Using TRAMP on Windows
  2011-03-11 19:39         ` Deniz Dogan
@ 2011-03-11 19:46           ` Michael Albinus
       [not found]           ` <mailman.15.1299872788.6879.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 19:46 UTC (permalink / raw)
  To: Deniz Dogan; +Cc: emacs-help

Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:

>>> FATAL ERROR: Server sent disconnect message
>>> type 2 (protocol error):
>>> "Too many authentication failures for webtheserver"
>>>
>>> Process *tramp/pscp www.theserver.com* exited abnormally with code 1
>>>
>>> What's really weird about this is the fact that I'm logging in with
>>> the username "webtheserver1", not "webtheserver" as shown in the log!
>>
>> Have you been asked for the password?
>>
>> If not, likely auth-source.el is in action, trying to read a password
>> from whatever you have specified in auth-sources.
>>
>
> Yes, I'm asked for the password and I'm entering it correctly.

As I have said the other mail, I need full traces. If you don't want to
circulate this information in the archives, send the traces off-list.

Best regards, Michael.



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

* Re: Using TRAMP on Windows
  2011-03-11 19:36             ` Michael Albinus
@ 2011-03-11 19:46               ` Eli Zaretskii
       [not found]               ` <mailman.16.1299872811.6879.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 19:46 UTC (permalink / raw)
  To: help-gnu-emacs, tramp-devel

> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: help-gnu-emacs@gnu.org, tramp-devel@gnu.org
> Date: Fri, 11 Mar 2011 20:36:03 +0100
> 
> Eli Zaretskii <eliz@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.



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

* Re: Using TRAMP on Windows
       [not found]               ` <mailman.16.1299872811.6879.help-gnu-emacs@gnu.org>
@ 2011-03-11 19:52                 ` David Kastrup
  2011-03-11 20:56                   ` Eli Zaretskii
       [not found]                   ` <mailman.23.1299877010.6879.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 31+ messages in thread
From: David Kastrup @ 2011-03-11 19:52 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Michael Albinus <michael.albinus@gmx.de>
>> Cc: help-gnu-emacs@gnu.org, tramp-devel@gnu.org
>> Date: Fri, 11 Mar 2011 20:36:03 +0100
>> 
>> Eli Zaretskii <eliz@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.

If plink does that by itself already, one would not need to assume it on
Emacs' side, would one?

-- 
David Kastrup


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

* Re: Using TRAMP on Windows
  2011-03-11 19:40               ` Michael Albinus
@ 2011-03-11 20:08                 ` Eli Zaretskii
  0 siblings, 0 replies; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 20:08 UTC (permalink / raw)
  To: help-gnu-emacs, tramp-devel

> From: Michael Albinus <michael.albinus@gmx.de>
> Date: Fri, 11 Mar 2011 20:40:53 +0100
> Cc: help-gnu-emacs@gnu.org, tramp-devel@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.



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

* Re: Using TRAMP on Windows
       [not found]           ` <mailman.15.1299872788.6879.help-gnu-emacs@gnu.org>
@ 2011-03-11 20:46             ` Ted Zlatanov
  0 siblings, 0 replies; 31+ messages in thread
From: Ted Zlatanov @ 2011-03-11 20:46 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 11 Mar 2011 20:46:16 +0100 Michael Albinus <michael.albinus@gmx.de> wrote: 

MA> Deniz Dogan <deniz.a.m.dogan@gmail.com> writes:
>>>> FATAL ERROR: Server sent disconnect message
>>>> type 2 (protocol error):
>>>> "Too many authentication failures for webtheserver"
>>>> 
>>>> Process *tramp/pscp www.theserver.com* exited abnormally with code 1
>>>> 
>>>> What's really weird about this is the fact that I'm logging in with
>>>> the username "webtheserver1", not "webtheserver" as shown in the log!
>>> 
>>> Have you been asked for the password?
>>> 
>>> If not, likely auth-source.el is in action, trying to read a password
>>> from whatever you have specified in auth-sources.
>> 
>> Yes, I'm asked for the password and I'm entering it correctly.

MA> As I have said the other mail, I need full traces. If you don't want to
MA> circulate this information in the archives, send the traces off-list.

Deniz, could you also set `auth-source-debug' to 'trivia so we can see
what it's doing as well?  The log will go to *Messages*.

Thanks
Ted


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

* Re: Using TRAMP on Windows
  2011-03-11 19:52                 ` David Kastrup
@ 2011-03-11 20:56                   ` Eli Zaretskii
  2011-03-11 21:06                     ` Michael Albinus
       [not found]                   ` <mailman.23.1299877010.6879.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-11 20:56 UTC (permalink / raw)
  To: help-gnu-emacs

> From: David Kastrup <dak@gnu.org>
> Date: Fri, 11 Mar 2011 20:52:08 +0100
> 
> If plink does that by itself already, one would not need to assume it on
> Emacs' side, would one?

I have no idea, because I don't know what Tramp does with that
default.  It could use it for something other than just passing to
plink as the username to use for logging in.



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

* Re: Using TRAMP on Windows
  2011-03-11 20:56                   ` Eli Zaretskii
@ 2011-03-11 21:06                     ` Michael Albinus
  0 siblings, 0 replies; 31+ messages in thread
From: Michael Albinus @ 2011-03-11 21:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: David Kastrup <dak@gnu.org>
>> Date: Fri, 11 Mar 2011 20:52:08 +0100
>> 
>> If plink does that by itself already, one would not need to assume it on
>> Emacs' side, would one?
>
> I have no idea, because I don't know what Tramp does with that
> default.  It could use it for something other than just passing to
> plink as the username to use for logging in.

Tramp would use it for finding the password via auth-source.el. But if
somebody configures auth-sources accordingly, she could also add a rule
to tramp-default-user-alist.

The question is, whether there is additional benefit, using such a
default as Tramp builtin. If it is not common, that the Windows user
name is the same as the *nix/*nux user name, we could refrain from
setting such a default.

Best regards, Michael.



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

* Re: Using TRAMP on Windows
       [not found]                   ` <mailman.23.1299877010.6879.help-gnu-emacs@gnu.org>
@ 2011-03-11 21:07                     ` David Kastrup
  0 siblings, 0 replies; 31+ messages in thread
From: David Kastrup @ 2011-03-11 21:07 UTC (permalink / raw)
  To: help-gnu-emacs

Eli Zaretskii <eliz@gnu.org> writes:

>> From: David Kastrup <dak@gnu.org>
>> Date: Fri, 11 Mar 2011 20:52:08 +0100
>> 
>> If plink does that by itself already, one would not need to assume it on
>> Emacs' side, would one?
>
> I have no idea, because I don't know what Tramp does with that
> default.  It could use it for something other than just passing to
> plink as the username to use for logging in.

Like deciding whether Emacs may be able to write to a file?

-- 
David Kastrup


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

* Re: Using TRAMP on Windows
  2011-03-11 12:52         ` William Stevenson
@ 2011-03-12  9:03           ` Eli Zaretskii
  0 siblings, 0 replies; 31+ messages in thread
From: Eli Zaretskii @ 2011-03-12  9:03 UTC (permalink / raw)
  To: help-gnu-emacs

> From: William Stevenson <yhvh2000@gmail.com>
> Date: Fri, 11 Mar 2011 12:52:39 +0000
> 
>  (add-to-list  'file-coding-system-alist
> 	       `(,tramp-file-name-regexp . raw-text-unix))

If you really need this last part (as opposed to paranoia caused by
some bad past experience), then there is a bug in Tramp that should be
reported.  There's no need to disable decoding/encoding of files from
remote systems.



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

end of thread, other threads:[~2011-03-12  9:03 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-11 10:00 Using TRAMP on Windows Deniz Dogan
2011-03-11 10:09 ` Deniz Dogan
2011-03-11 17:59   ` Michael Albinus
2011-03-11 19:08     ` Deniz Dogan
2011-03-11 19:24       ` Michael Albinus
2011-03-11 19:39         ` Deniz Dogan
2011-03-11 19:46           ` Michael Albinus
     [not found]           ` <mailman.15.1299872788.6879.help-gnu-emacs@gnu.org>
2011-03-11 20:46             ` Ted Zlatanov
2011-03-11 10:25 ` Jonathan Groll
2011-03-11 10:28 ` Eli Zaretskii
2011-03-11 10:35   ` Deniz Dogan
2011-03-11 11:34     ` Eli Zaretskii
2011-03-11 11:58       ` Deniz Dogan
2011-03-11 12:27         ` Eli Zaretskii
2011-03-11 19:28           ` Michael Albinus
2011-03-11 12:50         ` Jonathan Groll
2011-03-11 15:49           ` Eli Zaretskii
2011-03-11 19:36             ` Michael Albinus
2011-03-11 19:46               ` Eli Zaretskii
     [not found]               ` <mailman.16.1299872811.6879.help-gnu-emacs@gnu.org>
2011-03-11 19:52                 ` David Kastrup
2011-03-11 20:56                   ` Eli Zaretskii
2011-03-11 21:06                     ` Michael Albinus
     [not found]                   ` <mailman.23.1299877010.6879.help-gnu-emacs@gnu.org>
2011-03-11 21:07                     ` David Kastrup
     [not found]           ` <mailman.5.1299858579.20707.help-gnu-emacs@gnu.org>
2011-03-11 16:25             ` Richard Riley
2011-03-11 16:53               ` Eli Zaretskii
2011-03-11 19:40               ` Michael Albinus
2011-03-11 20:08                 ` Eli Zaretskii
2011-03-11 19:29           ` Michael Albinus
     [not found]       ` <mailman.5.1299844760.14178.help-gnu-emacs@gnu.org>
2011-03-11 12:52         ` William Stevenson
2011-03-12  9:03           ` Eli Zaretskii
2011-03-11 19:20       ` Michael Albinus

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.