title: Mercurial over ssh with config file
body: <p>Say I have the following ssh <strong>.config</strong> file:</p>
  
  <pre><code>Host host_nickname
      User xxx
      HostName yyy.zz.vvv
      ControlMaster auto
      ControlPath ~/.ssh/%r@%h:%p
  </code></pre>
  
  <p>In case you are not familiar with <strong>ControlMaster</strong> or <strong>ControlPath</strong>, here is the description from the <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&amp;sektion=5" rel="nofollow">ssh_config manual</a>:</p>
  
  <pre><code>ControlMaster:
           Enables the sharing of multiple sessions over a single network
           connection.  When set to ``yes'', ssh(1) will listen for connec-
           tions on a control socket specified using the ControlPath argu-
           ment.  Additional sessions can connect to this socket using the
           same ControlPath with ControlMaster set to ``no'' (the default).
           These sessions will try to reuse the master instance's network
           connection rather than initiating new ones, but will fall back to
           connecting normally if the control socket does not exist, or is
           not listening.
  </code></pre>
  
  <p>In Mercurial, if you want to push or pull from a repository, you could just type the following:</p>
  
  <pre><code>hg push ssh://user@example.com/hg/
  </code></pre>
  
  <h3>Now, my question:</h3>
  
  <p>I would like to ask Mercurial to push (or pull) against a repository at <code>/path/to/repository</code> on the server corresponding to my ssh config entry <strong>host_nickname</strong>. How do I do this?</p>