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

Re: SSH from Windows via PuTTY - problem+solution

From: Matthew S. Moore <mmoore_at_asf.alaska.edu>
Date: 2005-05-19 19:32:18 CEST

T E Schmitz wrote:
> [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?
>
You don't need to use the '-load' option or specify the username in the svn URL.

PuTTY Link: command-line connection utility
Release 0.58
Usage: plink [options] [user@]host [command]
        ("host" can also be a PuTTY saved session name)

The following configuration works great for me...

This is what I did in my .subversion/config:
[tunnels]
ssh = $SVN_SSH D:/PuTTY/plink.exe

In Putty I define a session:
session name = my_svn_server
auto-login username = my_username

Of course have pagaent running with a valid key for authentication to your
Subversion server.

Then I connect to subversion using:
svn list svn+ssh://my_svn_server/svn/repos

This way it looks exactly the same if I were connection from linux.
This is also practically how it works with TortoiseSVN, except I configure TSVN
to use C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe. Otherwise the rest
is the same.

I hope this helps!

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Matthew S Moore                          Alaska Satellite Facility
Configuration Manager                    Geophysical Institute
& Development Engineer                   University of Alaska Fairbanks
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 19 19:34:26 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.