old issue, new take - 'Network Connection Closed Unexpectedly' when using svn+ssh

1,512 views
Skip to first unread message

Jankowski, Thomas

unread,
Apr 16, 2009, 12:05:10 PM4/16/09
to us...@tortoisesvn.tigris.org
Dear all,
 
I've seen that issue posted a number of times before, but never faced it as I'v always used svn directly, not through tortoisesvn.  And yet here it is.
 
Environment: WinXP desktop using svn+ssh with Tortoise 1.6 connecting to subversion 1.6.1 on a shared linux host
I can putty into the host just fine, using both direct connection using username and password as well as a saved connection using a private key.
I can also perform operations from commandline just fine, having configured svn+ssh in svn config to use plink and with pageant running.
 
But, when trying to use TortoiseSVN, whether it's with plink or tortoiseplink, using a saved putty connection or directly, it always presents me with this same error.
Yes, I've scoured the net and the forums here, and tried a number of ideas and how-to's, all to no avail.
 
Please, let me know if you have any ideas on what to try or how to enable some sort of verbose logging that could trap the actual error.  I'd love to get TortoiseSVN going as I want to use AnkhSVN with it for VS2005 version control, but this little hickup is becoming unnerving.
 
Best regards,
Thomas Jankowski
 

Kurt Pruenner

unread,
Apr 16, 2009, 1:21:42 PM4/16/09
to us...@tortoisesvn.tigris.org
Jankowski, Thomas wrote:
> But, when trying to use TortoiseSVN, whether it's with plink or
> tortoiseplink, using a saved putty connection or directly, it always
> presents me with this same error.

Do you perhaps have a host name saved in PuTTY's default settings? If
so, delete it, as "Default Settings" is what TSVN uses when establishing
a connection via TortoisePLink...

(Other default settings might be interfering, too...)

--
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
.......It might be written "Mindfuck", but it's spelt "L-A-I-N".......
np: Jared Emerson-Johnson - The Creature Was Stirring
(Sam & Max Season Two OST (Disc 1))

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1751274

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Jankowski, Thomas

unread,
Apr 16, 2009, 1:54:30 PM4/16/09
to us...@tortoisesvn.tigris.org
Kurt,

Thanks for the tip, but I saw that chain as well. My default settings are totally clear, in which case I get prompted for a password. I've also tried using a saved session with my PPK and host defined, and still no go. Again, both ways work just fine from command line svn.

Using standard plink from commandline also works great.

And yet no go with TSVN. Any other ideas?

Thanks,
Thomas

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1751274

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1751758

Jankowski, Thomas

unread,
Apr 16, 2009, 3:59:40 PM4/16/09
to us...@tortoisesvn.tigris.org
FYI,

The problem was related to the infamous 'mesg y' issue in bash.
I knew about the issue and dealt with it in local .bashrc, or so I thought, but only after making a copy of /etc/bashrc and pointing to that was I able to resolve the problem. Now TSVN is working beautifully. Hoping nightly svn of AnkhSVN will play nicely with the rest.

Thanks,
Thomas

Kurt,

Thanks,
Thomas

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1751274

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1751758

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1753926

web...@tigris.org

unread,
Apr 19, 2009, 11:35:40 PM4/19/09
to us...@tortoisesvn.tigris.org
Thank you so much! I've been trying to solve this issue for hours.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1817471

web...@tigris.org

unread,
Apr 22, 2009, 6:21:05 PM4/22/09
to us...@tortoisesvn.tigris.org
Hi, can you explain how you solved this problem ?

I am currently having the exact same issue, some user can checkout / commit fine while other including me are stuck with the "Network Connection Closed Unexpectedly" error

And i cannot underestandhow to solve it so far

Thanks

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1867142

web...@tigris.org

unread,
May 11, 2009, 9:26:25 AM5/11/09
to us...@tortoisesvn.tigris.org
Hello, I got stuck on the 'Network Connection Closed Unexpectedly' error for 6 month because I had a host name saved in PuTTY's default settings.

I worked with Tortoise V 1.4, but not from 1.5...

Should not this be considered as a bug ?

I liked my default configuration in putty, anyway !

However, thanks for this fantastic tool !

Alain Brion

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2190427

krommenaas

unread,
Oct 2, 2009, 2:52:29 PM10/2/09
to us...@tortoisesvn.tigris.org
I had this exact same problem and lost a lot of time because of it. Thanks Thomas for finding the solution. This should REALLY be in a FAQ!

For anyone else who gets here and doesn't know what to do:

- ssh into your account
- cd ~
- cp /etc/bashrc .bashrc
- nano .bashrc
- put a # before the line "mesg y" (which comments it out)
- Ctrl+X to exit, press Y when prompted to save.

that's it.

found this at http://wiki.site5.com/SVN/Subversion_%28SVN%29_Setup_Guide

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2403036

James

unread,
Dec 1, 2009, 4:33:03 AM12/1/09
to us...@tortoisesvn.tigris.org
Krommenaas, thanks for those steps above! They worked for me.

On Oct 2, 8:52 pm, krommenaas <krommen...@gmail.com> wrote:
> I had this exact same problem and lost a lot of time because of it. Thanks Thomas for finding the solution. This should REALLY be in a FAQ!
>
> For anyone else who gets here and doesn't know what to do:
>
> - ssh into your account
> - cd ~
> - cp /etc/bashrc .bashrc
> - nano .bashrc
> - put a # before the line "mesg y" (which comments it out)
> - Ctrl+X to exit, press Y when prompted to save.
>
> that's it.
>
> found this athttp://wiki.site5.com/SVN/Subversion_%28SVN%29_Setup_Guide
>

> ------------------------------------------------------http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMess...
>
> To unsubscribe from this discussion, e-mail: [users-unsubscr...@tortoisesvn.tigris.org].

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2425816

Simon Large

unread,
Jan 2, 2010, 6:18:52 PM1/2/10
to us...@tortoisesvn.tigris.org
2009/10/2 krommenaas <kromm...@gmail.com>:

> I had this exact same problem and lost a lot of time because of it. Thanks Thomas for finding the solution. This should REALLY be in a FAQ!
>
> For anyone else who gets here and doesn't know what to do:
>
> - ssh into your account
> - cd ~
> - cp /etc/bashrc .bashrc
> - nano .bashrc
> - put a # before the line "mesg y" (which comments it out)
> - Ctrl+X to exit, press Y when prompted to save.
>
> that's it.

Thanks. Added to FAQ in r18162.

Simon

--
: ___
: oo // \\ "De Chelonian Mobile"
: (_,\/ \_/ \ TortoiseSVN
: \ \_/_\_/> The coolest Interface to (Sub)Version Control
: /_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2434297

David Hillman

unread,
Feb 5, 2010, 12:52:32 PM2/5/10
to us...@tortoisesvn.tigris.org
Does anyone have any other suggestions?

I have the same problem as the original poster, but this solution does not work. My ~/.bashrc file exists, but has null contents. In fact, I still get the "Connection closed" error after switching my default shell to a non-Bash alternative.

I can make a Putty ssh connection to the repository host without issue, but TSVN does not work. I have no defaults set in Putty.

Thanks in advance.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2445205

sir anthony

unread,
Feb 11, 2010, 11:09:17 AM2/11/10
to us...@tortoisesvn.tigris.org
I am having the same issue, did you manage to find a solution? Please let me know.

Thanks.


-----

> Does anyone have any other suggestions?
>
> I have the same problem as the original poster, but this solution does not work. My ~/.bashrc file exists, but has null contents. In fact, I still get the "Connection closed" error after switching my default shell to a non-Bash alternative.
>
> I can make a Putty ssh connection to the repository host without issue, but TSVN does not work. I have no defaults set in Putty.
>
> Thanks in advance.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2446740

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2446762

Reply all
Reply to author
Forward
0 new messages