[SOLVED, sort of] Re: svn+ssh over nonstandard port fails to
connect
Tom Evans
tevans.uk at googlemail.com
Fri Jun 29 13:54:42 UTC 2007
On Fri, 2007-06-29 at 04:23 -0600, Chad Perrin wrote:
> For a moment, I thought this wasn't going to work, because nothing like
> that syntax seems to work in tcsh -- but then I remembered that, in this
> case, the only reason I was even doing this was to test whether someone
> else would be able to access the contents of the repository from
> off-site, and that person is using bash. As such, I tried a pretty much
> verbatim copy of what you suggested from a bash prompt, and it worked, so
> it should work for him.
>
> In other words, my immediate problem is solved. Thank you.
>
> It seems odd that I cannot find an easier way around this with tcsh than
> setting an environment variable, running the svn command I need, then
> unsetting the environment variable, every time. Coupled with the strange
> argument quoting requirements of tcsh and the fact that it's easier to
> get into trouble with weird filenames than in other shells I've used, I'm
> tempted to go back to bash.
>
Did you miss Albert Shih's reply (slightly modified)?
> Put something like
> [tunnels]
> myssh=/usr/bin/ssh -p 1234 123.45.678.90
> in
> ~/.subversion/config
> and use
> svn co svn+myssh://usr/home/svn-repos/project
You can then clearly define as many transports as you like, which
requires no setting of environment variables and is shell-agnostic.
Full details are described in the redbook:
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html#svn.serverconfig.svnserve.sshauth
In fact, if you had read the svn+ssh portion of the redbook, you would
have come across this sentence:
"This example demonstrates a couple of things. First, it shows how to
make the Subversion client launch a very specific tunneling binary (the
one located at /opt/alternate/ssh) with specific options. In this case,
accessing a svn+joessh:// URL would invoke the particular SSH binary
with -p 29934 as arguments — useful if you want the tunnel program to
connect to a non-standard port."
Reading the manual is good.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070629/e99c9099/attachment.pgp
More information about the freebsd-questions
mailing list