Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9217595
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:40:03+00:00 2026-06-18T02:40:03+00:00

I’m having problems accessing an SVN repository using TortoiseSVN 1.7.8. The SVN repository is

  • 0

I’m having problems accessing an SVN repository using TortoiseSVN 1.7.8.

The SVN repository is on a CentOS 6.3 box with openssh 5.3p1:81.el6 and appears to be functioning correctly.

# svnadmin --version
# svnadmin, version 1.6.11 (r934486)

I can access the repository from another CentOS box with this command:

svn list svn+ssh://USER@xxx.xx.xx.xxx/var/svn/joetest

But when I attempt to browse the repository using TortiseSVN from a Win 7 workstation I’m unable to do so using the following path:

svn+ssh://USER@xxx.xx.xx.xxx/var/svn/joetest

I receive the following error from TortoiseSVN:

Unable to connect to a repository at URL
‘svn+ssh://USER@xxx.xx.xx.xxx/var/svn/joetest’ To better debug SSH
connection problems, remove the -q option from ‘ssh’ in the [tunnels]
section of your Subversion configuration file. Network connection
closed unexpectedly

I’m able to login via SSH from the workstation using Putty.

The results are the same if I attempt access as root.

I’ve given ownership of the repository /var/svn/ to USER:USER and ran
chmod 2700 -R /var/svn/.

Because I can access the repository via ssh from another Linux box, permissions don’t appear to be the problem.

When I watch the log file using tail -fn 2000 /var/log/secure, I see the following each time TortiseSVN asks for the password:

Sep 26 17:34:31 dev sshd[30361]: Accepted password for USER from xx.xxx.xx.xxx port 59101 ssh2
Sep 26 17:34:31 dev sshd[30361]: pam_unix(sshd:session): session opened for user USER by (uid=0)
Sep 26 17:34:31 dev sshd[30361]: pam_unix(sshd:session): session closed for user USER

I’m actually able to login, but the session is then closed immediately.

It caught my eye that the session is being opened for USER by root (uid=0), which may be correct, but I’ll mention it in case it has something to do with the problem.

I looked into modifying the svnserve.conf, but as far as I can tell, it’s not used when accessing the repository via svn+ssh, a private svnserve instance is created for each log in via this method. From the manual:

There’s still a third way to invoke svnserve, and that’s in “tunnel
mode”, with the -t option. This mode assumes that a remote-service
program such as RSH or SSH has successfully authenticated a user and
is now invoking a private svnserve process as that user. The svnserve
program behaves normally (communicating via stdin and stdout), and
assumes that the traffic is being automatically redirected over some
sort of tunnel back to the client. When svnserve is invoked by a
tunnel agent like this, be sure that the authenticated user has full
read and write access to the repository database files. (See Servers
and Permissions: A Word of Warning.) It’s essentially the same as a
local user accessing the repository via file:/// URLs.

The only non-default settings in sshd_config are:

Protocol 2 # to disable Protocol 1

SyslogFacility AUTHPRIV

ChallengeResponseAuthentication no

GSSAPIAuthentication yes
GSSAPICleanupCredentials yes

UsePAM yes

AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE
AcceptEnv XMODIFIERS

X11Forwarding no

Subsystem       sftp    /usr/libexec/openssh/sftp-server

Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T02:40:05+00:00Added an answer on June 18, 2026 at 2:40 am

    I finally came across a solution for this. In the TortoiseSVN FAQ of all places:
    TortoiseSVN Frequently asked questions

    From the FAQ:
    SVN+SSH: Connection closed unexpectedly

    It has been reported that svn+ssh connections of the form
    svn+ssh://username@server.com which were previously working, stop
    working with TortoiseSVN 1.5. This seems to be related to plink, and
    occurs if you have a default hostname set in PuTTY.

    If this is the case you can fix it by using regedit or regedt32 to
    clear
    HKEY_CURRENT_USER/Software/SimonTatham/Putty/Sessions/Default%20Settings/HostName.


    Another user has reported the following server-side fix:

    • 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.

    I didn’t try the first approach of editing my registry.

    The second approach of editing the bash configuration worked for me.

    A note about the bash configuration method:

    If you’re on shared hosting, your user .bashrc file will likely be loading the global /etc/bashrc file. You won’t be able to edit the global file, so you’ll need to work around that.

    Some possible approaches:

    • Try adding mesg n to your user .bashrc file. I’m not sure if this
      will work or whether it should be placed before or after the global
      file is loaded.

    • Don’t include the global file and hard code all the settings in your
      user .bashrc file.

    • Remove the mesg y setting from the global /etc/bashrc file as it’s
      loading. This question discusses how to do that: Use a grepped file
      as an included source in bash

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
We're building an app, our first using Rails 3, and we're having to build
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am using JSon response to parse title,date content and thumbnail images and place
I am using the SimpleRSS gem to parse a WordPress RSS feed. The only
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We are using XSLT to translate a RIXML file to XML. Our RIXML contains
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.
I'm having trouble keeping the paragraph square between the quote marks. In firefox the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.