unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to use "/multi:" method in tramp with emacs23?
@ 2007-10-06 20:38 Nikos Apostolakis
  0 siblings, 0 replies; 5+ messages in thread
From: Nikos Apostolakis @ 2007-10-06 20:38 UTC (permalink / raw)
  To: help-gnu-emacs

Hello group,

the following syntax works for tramp in emacs22

/multi:ssh:me@host1:ssh:me@host2:/path/to/file

where host2 is a host that I can acces only from host1.  This
doesn't seem to work with emacs23 anymore.  Whenever I try such
paths I get the message

File error: Process has died
tramp-error: Process has died

and a buffer named *tramp/ssh ssh* containing:

ssh: ssh: Name or service not known

Anybody knows how to fix this?

I am using the emacs-snapshot package for Debian:

(version)
"GNU Emacs 23.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.0)
 of 2007-09-30 on elegiac, modified by Debian"

(tramp-version t)
2.1.11-pre

TIA,
Nikos

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

* Re: How to use "/multi:" method in tramp with emacs23?
       [not found] <mailman.1784.1191703243.18990.help-gnu-emacs@gnu.org>
@ 2007-10-06 22:02 ` Johan Bockgård
  2007-10-07  5:15   ` Nikos Apostolakis
  0 siblings, 1 reply; 5+ messages in thread
From: Johan Bockgård @ 2007-10-06 22:02 UTC (permalink / raw)
  To: help-gnu-emacs

Nikos Apostolakis <nikos.ap@gmail.com> writes:

> the following syntax works for tramp in emacs22
>
> /multi:ssh:me@host1:ssh:me@host2:/path/to/file
>
> where host2 is a host that I can acces only from host1.  This
> doesn't seem to work with emacs23 anymore.

From etc/NEWS (`C-h n'):

    *** Multihop syntax has been removed.
    The pseudo-method "multi" has been removed.  Instead of, multi hops
    can be specified by the new variable `tramp-default-proxies-alist'.

-- 
Johan Bockgård

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

* Re: How to use "/multi:" method in tramp with emacs23?
  2007-10-06 22:02 ` How to use "/multi:" method in tramp with emacs23? Johan Bockgård
@ 2007-10-07  5:15   ` Nikos Apostolakis
  2007-10-07  9:06     ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: Nikos Apostolakis @ 2007-10-07  5:15 UTC (permalink / raw)
  To: help-gnu-emacs

bojohan+news@dd.chalmers.se (Johan Bockgård) writes:

> Nikos Apostolakis <nikos.ap@gmail.com> writes:
>
>> the following syntax works for tramp in emacs22
>>
>> /multi:ssh:me@host1:ssh:me@host2:/path/to/file
>>
>> where host2 is a host that I can acces only from host1.  This
>> doesn't seem to work with emacs23 anymore.
>
> From etc/NEWS (`C-h n'):
>
>     *** Multihop syntax has been removed.
>     The pseudo-method "multi" has been removed.  Instead of, multi hops
>     can be specified by the new variable `tramp-default-proxies-alist'.
>

I see, thanks for your answer.  For some reason the emacs snapshot
package has the info documentation for an older version of tramp and
I did't think to look at the news.  I found the documentation in the
web but stil I am not sure how to set the variable
`tramp-default-proxies-alist' to accomplish what the old "/multi"
syntax did.  In the above example I have the ip addresses of host1
and host2, how should I set the variable?

Thanks,
Nikos

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

* Re: How to use "/multi:" method in tramp with emacs23?
  2007-10-07  5:15   ` Nikos Apostolakis
@ 2007-10-07  9:06     ` Michael Albinus
  2007-10-07 14:13       ` Nikos Apostolakis
  0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2007-10-07  9:06 UTC (permalink / raw)
  To: Nikos Apostolakis; +Cc: help-gnu-emacs

Nikos Apostolakis <nikos.ap@gmail.com> writes:

> bojohan+news@dd.chalmers.se (Johan Bockgård) writes:
>
>> Nikos Apostolakis <nikos.ap@gmail.com> writes:
>>
>>> the following syntax works for tramp in emacs22
>>>
>>> /multi:ssh:me@host1:ssh:me@host2:/path/to/file
>>>
>>> where host2 is a host that I can acces only from host1.  This
>>> doesn't seem to work with emacs23 anymore.
>>
>> From etc/NEWS (`C-h n'):
>>
>>     *** Multihop syntax has been removed.
>>     The pseudo-method "multi" has been removed.  Instead of, multi hops
>>     can be specified by the new variable `tramp-default-proxies-alist'.
>>
>
> I see, thanks for your answer.  For some reason the emacs snapshot
> package has the info documentation for an older version of tramp and
> I did't think to look at the news.  I found the documentation in the
> web but stil I am not sure how to set the variable
> `tramp-default-proxies-alist' to accomplish what the old "/multi"
> syntax did.  In the above example I have the ip addresses of host1
> and host2, how should I set the variable?

(add-to-list 'tramp-default-proxies-alist
             '("host2" "me" "/ssh:me@host1:"))

> Thanks,
> Nikos

Best regards, Michael.

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

* Re: How to use "/multi:" method in tramp with emacs23?
  2007-10-07  9:06     ` Michael Albinus
@ 2007-10-07 14:13       ` Nikos Apostolakis
  0 siblings, 0 replies; 5+ messages in thread
From: Nikos Apostolakis @ 2007-10-07 14:13 UTC (permalink / raw)
  To: help-gnu-emacs

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

>>> Nikos Apostolakis <nikos.ap@gmail.com> writes:
>>>
>>>> the following syntax works for tramp in emacs22
>>>>
>>>> /multi:ssh:me@host1:ssh:me@host2:/path/to/file
>>>>
>>>> where host2 is a host that I can acces only from host1.  This
>>>> doesn't seem to work with emacs23 anymore.

[...]

>>  In the above example I have the ip addresses of host1
>> and host2, how should I set the variable?
>
> (add-to-list 'tramp-default-proxies-alist
>              '("host2" "me" "/ssh:me@host1:"))
>

Ok, I did that, but it didn't work.  Just to make sure, after
setting the variable, to open the file "/path/to/file" in host2 I
should do "C-x C-f /me@host2:/path/to/file", right?  When I do that 
I get the message "File error: Permission denied" and a buffer 
named *ssh me@host2* containing "ssh: ssh: Name or service not known"
I also tried "C-x C-f /ssh:me@host2:/path/to/file" with the same 
results.

With emacs22 on the same machine I can connect to host2 via host1.

Thanks again,
Nikos

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

end of thread, other threads:[~2007-10-07 14:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1784.1191703243.18990.help-gnu-emacs@gnu.org>
2007-10-06 22:02 ` How to use "/multi:" method in tramp with emacs23? Johan Bockgård
2007-10-07  5:15   ` Nikos Apostolakis
2007-10-07  9:06     ` Michael Albinus
2007-10-07 14:13       ` Nikos Apostolakis
2007-10-06 20:38 Nikos Apostolakis

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