all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Michael Albinus <michael.albinus@gmx.de>
Cc: help-gnu-emacs@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Tramp and ssh control path
Date: Mon, 15 Apr 2013 18:09:19 +0200	[thread overview]
Message-ID: <20130415160919.GI16442@kuru.dyndns-at-home.com> (raw)
In-Reply-To: <871uab9alp.fsf@gmx.de>

Hi Michael,

On Mon, Apr 15, 2013 at 03:39:30PM +0200, Michael Albinus wrote:
> Michael Albinus <michael.albinus@gmx.de> writes:
> 
> >> BTW, such problems shouldn't exist any more now that the master
> >> is handled correctly (it's not one of the sessions any more, so all
> >> sessions are "equal").
> >
> > In this case, I could make ControlPath configurable, with a red blinking
> > warning about possible side effects ...
> 
> The Tramp FAQ has now the following wording:
> 
> --8<---------------cut here---------------start------------->8---
>    * TRAMP does not use my 'ssh' 'ControlPath'
> 
>      Your 'ControlPath' setting will be overwritten by 'ssh' sessions
>      initiated by TRAMP.  This is because a master session, initiated
>      outside Emacs, could be closed, which would stall all other 'ssh'
>      sessions for that host inside Emacs.
> 
>      Consequently, if you connect to a remote host via TRAMP, you might
>      be prompted for a password again, even if you have established
>      already an 'ssh' connection to that host.  Further TRAMP
>      connections to that host, for example in order to run a process on
>      that host, will reuse that initial 'ssh' connection.
> 
>      If you know that your 'ControlPath' settings won't disturb TRAMP,
>      you could customize the variable 'tramp-ssh-controlmaster-options'
>      like this:
> 
>           (setq tramp-ssh-controlmaster-options
>                 (concat
>                   "-o ControlPath=/tmp/ssh-ControlPath-%%r@%%h:%%p "
>                   "-o ControlMaster=auto -o ControlPersist=no"))
> 
>      Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and
>      "%%p", respectively.
> --8<---------------cut here---------------end--------------->8---
> 
> This shall work starting Tramp 2.2.7. Emacs 24.3 has built-in Tramp
> 2.2.6, so it doesn't work there yet.

Thanks a lot, for both the very clear FAQ and the option to override it.

Cheers,

:)

-- 
Suvayu

Open source is the future. It sets us free.



      parent reply	other threads:[~2013-04-15 16:09 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
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 [this message]

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=20130415160919.GI16442@kuru.dyndns-at-home.com \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=monnier@iro.umontreal.ca \
    /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.