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

Re: svn+ssh authentication on windows, wrong author (sshd_server)

From: Lars Thorup <lars.thorup_at_bestbrains.dk>
Date: 2007-02-19 21:20:47 CET

Hi,

In July 2006, Timo wrote:
> Everything is working fine using Tortoise or Subclipse,
> but when committing, the author is always 'sshd_server'

The problem has to do with the sshd server. If you send this command to
the server:
     plink <server> whoami
The answer is "sshd_server"

And this is probably the same thing that Subversion does internally.

However we investigated other unix commands and found this one:
     plink <server> id -u -n
The answer is "lth" (my user name)

Using "Process Explorer" from SysInternals (now Microsoft) we
investigated what happens when TortoiseSVN calls the Subversion server
and we noticed that it invokes this command:
     svnserve -t

Now putting a shell script called "svnserve" (notice: without extension)
into %WINDIR%\system32 with this line in it (notice: use back-quotes)
     svnserve.exe -t --tunnel-user=`id -u -n`
and from a Cygwin Bash Shell saying
     chmod +x /cygdrive/c/WINDOWS/system32/svnserve
solves our problem :-)

Now svn+ssh authentication works correctly and we can still use SSH for
all other purposes.

/ Lars

-- 
Lars Thorup, direktør, +45 2149 8412
BestBrains ApS, http://www.bestbrains.biz, +45 7026 2118
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 19 21:21:15 2007

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.