What's the best way to do a svn commit over reverse ssh?
Typically when using svn we access it over svn+ssh, but I have an instance where the box making the modifications can't ssh into the svn server, BUT the reverse isn't true, the svn server can ssh into the change box. So what I would really like to do is be on the svn server and tell it to remotely connect, add files, and commit.
The only way I have thought of to do this would be to ssh from svn server to the change box opening a tunnel for ssh, and then use svn+ssh tunneled through the first connection which seems overly complicated.
Is there a better way to do a reverse connection through SSH?
The svn server is FreeBSD while the change box is OpenSuse. I could put in a request to open s hole in the firewall; in consider all requests a natural question is if this is necessary and what are the alternatives and their associated level of pain
One possibility is to start snvserve on the svn server, start a reverse tunnel from the svn server to the change box, then run svn on the change box as if it was talking to a local svnserve instance. The ssh setup would be
The
-R
flag to ssh "specifies that the given port on the remote (server) host is to be forwarded to the given host and port on the local side."