unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Tramp and ssh control path
Date: Tue, 16 Apr 2013 10:08:54 +0200	[thread overview]
Message-ID: <87y5ciyk15.fsf@gmx.de> (raw)
In-Reply-To: <jwvip3ndfup.fsf-monnier+gmane.emacs.help@gnu.org> (Stefan Monnier's message of "Mon, 15 Apr 2013 10:48:08 -0400")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Hmm.. I think the issue is as follows: if ControlPersist is no, then the
> "old-style" control-master is used (i.e. the first session acts as
> master), whereas otherwise, the new style (i.e. the master is a process
> separate from the session processes, so the first session is not
> special).
>
> If the user has set ControlMaster in his ssh config but with
> ControlPersist=no, then we might not want to use his control-master, and
> Tramp is right to fiddle with ControlPath.
>
> But if the user has ControlPersist enabled in his ssh config, then the
> best value for tramp-ssh-controlmaster-options will usually be "".

Well, I have changed the last sentences of the FAQ entry:

     If your 'ssh' version supports the 'ControlPersist' option, you
     could customize the variable 'tramp-ssh-controlmaster-options' to
     use your 'ControlPath', for example:

          (setq tramp-ssh-controlmaster-options
                (concat
                  "-o ControlPath=/tmp/ssh-ControlPath-%%r@%%h:%%p "
                  "-o ControlMaster=auto -o ControlPersist=yes"))

     Note, that "%r", "%h" and "%p" must be encoded as "%%r", "%%h" and
     "%%p", respectively.  The entries of 'ControlPath', 'ControlMaster'
     and 'ControlPersist' can be removed from this setting, if they are
     configured properly in your '~/.ssh/config':

          (setq tramp-ssh-controlmaster-options "")

>         Stefan

Best regards, Michael.



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

  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=87y5ciyk15.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=help-gnu-emacs@gnu.org \
    --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.
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).