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

SSH from Windows via PuTTY - problem+solution

From: T E Schmitz <mailreg_at_numerixtechnology.de>
Date: 2005-05-19 15:14:01 CEST

Hello,
I had been struggling against this problem for a good day. Eventually I
trawled through this mailing list where I found dozens of threads about
"SSH+SVN - Connection closed unexpectedly".

I would like to add another one:

I am using PuTTY's plink.exe as a tunnel agent for Subversion with
pageant.exe providing the private key for automatic identification. With
  putty.exe, I had created a session, specifyin gthe auto-login user
name and the private key.

First of all, I tested plink without Subversion:

plink -load MyConnection ls -l

where MyConnection is the session I had previously created. The above
worked no problem.

I then entered plink as a tunnel agent in Subversion's config file:
BEWARE: you must either have plink's directory in the PATH environment
variable or, if specifying the full path, you *must* use forward slashes
or it won't work!!!!!

[tunnels]
ssh = $SVN_SSH plink.exe -load MyConnection

This failed with "Connection closed unexpectedly".
Eventually, I tried other combinations and I found that the following
two possibilities worked:

1) specify the user in the config file
ssh = $SVN_SSH plink.exe -l elizabeth
svn list svn+ssh://myserver/srv/svn/project

2) specify the user in the URL
ssh = $SVN_SSH plink.exe
svn list svn+ssh://elizabeth@myserver/srv/svn/project

As a matter of curiosity, does anyone know why the hell loading the
session (plink.exe -load MyConnection) does not work in connection with
Subversion?

Hope this might help someone,
Tarlika Elisabeth Schmitz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 19 15:18:32 2005

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.