Michael Albinus | 9 Oct 2011 19:36
Picon
Picon
Gravatar

Re: Cannot connect with tramp when ssh works

Harry Putnam <reader <at> newsguy.com> writes:

> Michael Albinus <michael.albinus <at> gmx.de> writes:
>
>> Harry Putnam <reader <at> newsguy.com> writes:
>>
>>> Setup:  Emacs-24 compiles with mingw
>>>         Running on windows 7
>>>         tramp version 2.2.1-pre
>>>         plink version 0.60
>>>
>>> I can connect to all machines on my lan but 1.  I use plink since ssh
>>>   attempts from emacs have failed long ago.
>>>
>>>   /plink:user <at> host:/
>>>
>>> That works on all but 1.
>>
>> I guess it connects with native PuTTY, doesn't it?
>
> Yes
>
>> In this case, you might consider to use the Tramp method "plinkx", which
>> requires as host name the plink session name.
>
> Not sure what that is or how it might look, can show a brief example
> of what you mean?

In PuTTY, you save/load a session under a name, let's say
"host-session". In Tramp, you use then /plinkx:host-session:/
(Continue reading)

Harry Putnam | 11 Oct 2011 02:04
Favicon

Re: Cannot connect with tramp when ssh works

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

>>> In this case, you might consider to use the Tramp method "plinkx", which
>>> requires as host name the plink session name.
>>
>> Not sure what that is or how it might look, can show a brief example
>> of what you mean?
>
> In PuTTY, you save/load a session under a name, let's say
> "host-session". In Tramp, you use then /plinkx:host-session:/

Thanks, but sorry to report all I get with that is a revolving request
for password.

using putty I have that machine saved as m1.

From putty interface if I double click m1, I get a password prompt
immediately and am logged in after inserting it.

In emacs I try C-x d
then /plinkx:m1:/<RET>

Password prompt appears.  I insert passwd.  Password prompt appears
after a moment, I insert passwd.... and onward.
Michael Albinus | 11 Oct 2011 11:56
Picon
Picon
Gravatar

Re: Cannot connect with tramp when ssh works

Harry Putnam <reader <at> newsguy.com> writes:

> From putty interface if I double click m1, I get a password prompt
> immediately and am logged in after inserting it.
>
> In emacs I try C-x d
> then /plinkx:m1:/<RET>
>
> Password prompt appears.  I insert passwd.  Password prompt appears
> after a moment, I insert passwd.... and onward.

What happens, if you call the following from a CMD window:

plink -load m1 -t env 'TERM=dumb' 'PROMPT_COMMAND=' 'PS1=#$ ' /bin/sh

Best regards, Michael.

Gmane