all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: Emacs help <help-gnu-emacs@gnu.org>
Subject: Re: Tramp and ssh control path
Date: Mon, 15 Apr 2013 09:52:58 +0200	[thread overview]
Message-ID: <87ehecz0v9.fsf@gmx.de> (raw)
In-Reply-To: <20130414235816.GD11696@kuru.dyndns-at-home.com> (Suvayu Ali's message of "Mon, 15 Apr 2013 01:58:16 +0200")

Suvayu Ali <fatkasuvayu+linux@gmail.com> writes:

> Hello Michael,

Hi,

> Extremely sorry about the late response; I set it to respond later in
> the day and forgot!

No problem.

>> Yes, Tramp uses its own one. This is necessary, because Tramp cannot
>> trust in an opened Master ssh connection opened outside Emacs. And OTOH,
>> you won't be blocked in your ssh sessions outside due to a closed Tramp
>> connection.
>
> I guess this means I cannot share my tramp connection with my terminal
> session outside of Emacs.

Yes. I *could* add a custom option to define a matching ControlPath
template. But I fear that there might be cases that the master session
is closed outside Emacs, and Tramp ceases to work then. Hard to debug,
and not Tramp's business. Unless I'm urged to introduce this option I'd
like to avoid it.

Maybe I shall say something in the FAQ about.

> I tried this again on a remotehost where I can use ssh keys (no password
> prompts), there everything works as expected.  However repeating it for
> the host where I have to use a password, fails as I described earlier.

>> Could you rerun your test with tramp-verbose set to 10, and show the
>> result?
>
> Okay I tried it.  The log has too much non-anonymous information to
> clean up, so I am sending it off-list, I hope that is okay with you.

Reading the traces, it happens that there is no problem with the
ControlPath settings of Tramp and with the password recognition. Both
run fine.

You have a problem with the prompt on that host. It looks like

--8<---------------cut here---------------start------------->8---
^[]2;sali@lxplus443.cern.ch:~^G01:44|sali@lxplus443:^[[35;1m(998)0/44^[[0m^[[31;1m^[[0m^[[33;1m ~> ^[[0m
--8<---------------cut here---------------end--------------->8---

A lot of escape sequences, which might confuse Tramp. Please change your
settings on the remote host to avoid them (the Tramp manual gives you
some hints).

And even without the escape sequences, your prompt looks like

--8<---------------cut here---------------start------------->8---
sali@remotehost.domain.ch:~01:44|sali@remotehost:(998)0/44 ~>
--8<---------------cut here---------------end--------------->8---

This does not fit `tramp-shell-prompt-pattern', please use a compatible
prompt (or adapt `tramp-shell-prompt-pattern').

> Thanks a lot,

Best regards, Michael.



  reply	other threads:[~2013-04-15  7:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-11 12:38 Tramp and ssh control path Suvayu Ali
2013-04-12  9:34 ` Michael Albinus
2013-04-14 23:58   ` Suvayu Ali
2013-04-15  7:52     ` Michael Albinus [this message]
2013-04-15  8:24       ` Suvayu Ali
2013-04-15  8:53         ` Michael Albinus
2013-04-15 12:10       ` Stefan Monnier
2013-04-15 12:30         ` Michael Albinus
2013-04-15 13:39           ` Michael Albinus
2013-04-15 14:48             ` Stefan Monnier
2013-04-16  8:08               ` Michael Albinus
2013-04-15 16:09             ` 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

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

  git send-email \
    --in-reply-to=87ehecz0v9.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.
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.