[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Problem connecting to svnserve - not sure about protocols?

From: Saulius Grazulis <grazulis_at_akl.lt>
Date: 2006-12-19 08:08:35 CET

On Monday 18 December 2006 21:52, Ryan Schmidt wrote:

> I'm not sure of the solution because I do not use svnserve or svn
> +ssh, but I find it hard to believe that one would be required to  
> symlink svnserve somewhere or recompile ssh with special options, as  
> someone else suggested.

That was me ;)

The issue is not so much related to subversion but to ssh.

sshd, for security reasons, does not include /usr/local/bin/ into the PATH by
default; as Ryan perfectly explained in his cited post 'ssh
printenv' will most probably miss /usr/local/bin directory in the PATH

Apparently, /usr/local/bin is added to the PATH by shell profile scripts,
could be /etc/profile (for sh and bash) or /etc/csh.cshrc (for csh and tcsh).

Symlinking /usr/local/bin/svnserve to /usr/bin/svnserve is one possible (quick
and dirty?) easy solution; there are other possbilities; one of them is
recompiling ssh wih custom path, but I guess symlink is somewhat easier ;).

The issue will pop up also with other ssh-tunelling programs in
"non-standard" (according to ssh) locations, say with /usr/local/bin/rsync.

BTW, I have just found out that one can change ssh's default path (and other
environment vars) in the ~/.ssh/environment file :)

"Additionally, ssh reads ~/.ssh/environment, and adds lines of the format
``VARNAME=value'' to the environment if the file exists and if users are
allowed to change their environment. For more information, see the
PermitUserEnvironment option in sshd_config(5)"

(from man ssh)


Dr. Saulius Gražulis
Asociacija "Atviras Kodas Lietuvai"
Non-profit association "Open Source for Lithuania"
P.Vileišio g. 18
LT-10306 Vilnius
Lietuva (Lithuania)
web:          http://www.akl.lt/
tel/fax:      (+370-5)-210-4005
mobile:       (+370-684)-49802, (+370-614)-36366

  • application/pgp-signature attachment: stored
Received on Tue Dec 19 13:39:47 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.