You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Faller, Gyula" <GF...@Graphisoft.hu> on 2005/02/24 16:54:51 UTC

svn+ssh on Windows ("svn: Connection closed unexpectedly")

	Hi!

I tried to use svn+ssh protocol on Windows. I installed OpenSSH on the
server, then followed install instructions, and succeeded to start the
server. I tried to login from another machine with ssh, and that was OK.
 I tried to access the svn repository remotely with "svn log
svn+ssh://machine/path" and encountered a lot of problems:

- svn client said that it can't find the executable. But didn't said
which executable.
	The problem was the ssh client was not on the PATH.
	The solution was to put it into the PATH.

- Svn client said "svn: Connection closed unexpectedly"
	The problem was the server was configured by default to send a
Banner to the client before asking for password.
	The solution was to edit the OpenSSH\etc\sshd_config file to
disable sendig banner text.

- Svn client asked for password and then Svn client said "svn:
Connection closed unexpectedly" again.
	The problem was the ssh server couldn't find the user's home
directory and sent an error message about it.
	The solution was to edit the OpenSSH/etc/passwd file and
modifying all users' home directory to an existent one.

And voila: the log command succeeded!


 I wrote it to help other users to setup svn+ssh on Windows and to note
that this protocol is very fragile and svn error messages could be very
cryptic. Maybe if the svn clinet gets some unexpected text under logging
in it should echo it to the standard error and then ignore it. And when
it can't find an executable it would be helpful what is the problematic
command string.
 Is it possible to fix these weaknesses?

Despite these problems I like svn, and I hope my comments help to build
an even better svn:

	Gyula



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: svn+ssh on Windows ("svn: Connection closed unexpectedly")

Posted by "Matthew S. Moore" <mm...@asf.alaska.edu>.
Faller, Gyula wrote:
> - Svn client said "svn: Connection closed unexpectedly"
> 	The problem was the server was configured by default to send a
> Banner to the client before asking for password.
> 	The solution was to edit the OpenSSH\etc\sshd_config file to
> disable sendig banner text.

It should be unecessary to disable the banner.  Rather use ssh -q to suppress 
stderr on the client side.

>  I wrote it to help other users to setup svn+ssh on Windows and to note
> that this protocol is very fragile and svn error messages could be very
> cryptic. Maybe if the svn clinet gets some unexpected text under logging
> in it should echo it to the standard error and then ignore it. And when
> it can't find an executable it would be helpful what is the problematic
> command string.

Try using the -q option with the ssh client.  If you are using the subversion 
command line client add the -q option to the client subversion config file:

ssh = $SVN_SSH ssh -q

If you are using TortoiseSVN, then use TortoisePlink.exe as the ssh client and 
then the banner should not be displayed anywhere.

Matthew

-- 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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