On Wed, Sep 15, 2010 at 08:21:57PM -0300, Hugo Osvaldo Barrera wrote:
> On Wed, Sep 15, 2010 at 17:02, Joachim Schipper
> > In the specific case of Subversion, it's easy enough to invoke it
> > directly from SSH (...)
> 
> I know, I've used svn+ssh for some time.  The issue is I have several
> repositories, and several externals inside each.  This has two
> disadvantages:
> 1)  I need to set up a new ssh tunnel for each transaction.  These
> take a small while, but add up.
> 2)  For some reason, after several connections are opened, new one
> don't open.  They're NOT rejected, just no response from the server.
> I can't even ssh into the machine from *this machine*, but I can from
> a different one.  I tried the MaxStartups and MaxSessions in
> sshd_config, but that didn't help.
> 
> Reason (2) is really lame, and I should have fixed that, but since
> it's not the issue, I decided to give the single-tunnel idea.

Are you aware of the new Control* SSH options? They work really well,
especially with stupid programs like Subversion that like to open tons
of connections.

Try putting something like the following in ~/.ssh/config:

Host *
        ControlPath ~/.ssh/.mux...@%h:%p
        ControlPersist 3m

Host svn
        HostName svn.example.org
        IdentityFile ~/.ssh/id_rsa.svn
        ControlMaster auto

                Joachim

Reply via email to