unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: suvayu ali <fatkasuvayu+linux@gmail.com>
Cc: Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: edit a file over two linked ssh
Date: Tue, 22 Nov 2011 06:33:14 +0100	[thread overview]
Message-ID: <87sjlgpvqd.fsf@gmx.de> (raw)
In-Reply-To: <CAMXnza0DDRRPakzZvrXQMCFDNaTpeNFoBZ_yLf-+RuMN-1M5pQ@mail.gmail.com> (suvayu ali's message of "Tue, 22 Nov 2011 00:03:40 +0100")

suvayu ali <fatkasuvayu+linux@gmail.com> writes:

> Hello Michael,

Hi,

> Sorry forgot to mention that. I have all the ssh settings in my
> ~/.ssh/config and tramp-default-method is set to ssh. So always I
> connect like this: "C-x C-f /remotehost:/path/to/file".

This helps you for the first hop, to publichost. For the next hop, you
should have set ~/.ssh/config on publichost. And the last hop needs a
proper setting of ~/.ssh/config on intgw.

>> (add-to-list 'tramp-default-proxies-alist
>>             '("remotehost.\+" nil "/ssh:intuser@intgw:"))
>> (add-to-list 'tramp-default-proxies-alist
>>             '("intgw" nil "/ssh:publicuser@publichost:"))
>>
>> Note, that the order of both forms matters. Now you can open "C-x C-f
>> /remoteuser@remotehost1:/path/to/file".
>
> This doesn't seem to work. Whenever I do this, using ps I can see tramp
> tries to connect like this: ssh -l user -e none remotehost. And
> obviously the connection times out.
>
> I tried the following in a minimal Emacs 24 session.
>
> (require 'tramp)
>
> (setq debug-on-quit t
>       tramp-default-method "ssh"
>       tramp-verbose 6)
>
> (add-to-list 'tramp-default-proxies-alist
>              '("remotehost.\+" nil "/ssh:%u@intgw:"))
> (add-to-list 'tramp-default-proxies-alist
>              '("intgw" nil "/ssh:%u@publichost:"))
>
> Then I tried to open a file like this: C-x C-f /user@remotehost:~/ RET

Is it the same user on all three hosts?

> After waiting for a while I hit C-g to generate a backtrace (attached).

Please send me the reulting debug buffer. Setting tramp-verbose to 9 or
10 might be better. And I would also like to see the value of
`tramp-default-proxies-alist'.

You can send it off the list.

> Thanks,

Best regards, Michael.



  reply	other threads:[~2011-11-22  5:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-20  8:10 edit a file over two linked ssh mehran khajavi
2011-11-20  9:20 ` Peter Dyballa
2011-11-20 11:14 ` Michael Albinus
2011-11-20 13:17   ` Philipp Haselwarter
2011-11-20 13:30     ` Michael Albinus
2011-11-21 15:46   ` suvayu ali
2011-11-21 19:32     ` Michael Albinus
2011-11-21 23:03       ` suvayu ali
2011-11-22  5:33         ` Michael Albinus [this message]
2011-11-22 12:53           ` suvayu ali

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjlgpvqd.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).