You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Lars Thorup <la...@bestbrains.dk> on 2007/02/19 20:20:47 UTC

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

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