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 7509019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:47:19+00:00 2026-05-29T22:47:19+00:00

We have a self hosted git server (Gitolite) on a VPS account (CPU:2.68GHz RAM:1824MB).

  • 0

We have a self hosted git server (Gitolite) on a VPS account (CPU:2.68GHz RAM:1824MB). This same VPS is also used to publish our underdevelopment web apps for client demos. (Very little traffic). so the main use of the server is as a Git Server Only.

This git server is accessed by a team of 30-40 people for various projects. Our problem is that during the day when 6-7 people are trying to access the server (sometimes same repo) we get frequent error message:

ssh: connect to host xxx.xxx.xx.xx port 22: Bad file number
fatal: The remote end hung up unexpectedly

After trying for 10-15 minutes it generally succeeds.

During early mornings and late nights when there are only 1-2 people, git commands work with 100% success rate. Also I would like to note that if I access the other file hosted on the server through HTTP it works fine.

I found a couple of questions on StackOverflow and on other sites regarding this. But most of the people see to point towards SSH key set up or conflicts between Msysgit and Cygns SSH.

However I don’t think this is the problem in our case as we get this behavior on Windows (using msysgit only) as well as Mac Machines. Also if it was SSH configuration issue then it shouldn’t work at all. But in our case it works after 10-15 minutes.

I think in our case it might be too many simultaneous connections to same server (or same repo) or something like that. Does there exists a setting or a conf file that needs to modified to solve this problem?

Please help me solve this problem or point me in the right direction.

Thanks in advance.

Pritam.

  • 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-05-29T22:47:20+00:00Added an answer on May 29, 2026 at 10:47 pm

    This question is related to this one. I’m not sure if this ever got moved to ServerFault, or if it was solved – there’s no comments to that effect – so I’ll add this answer.

    Your issue is limited to accessing the git repository via SSH. This is because, by default, SSHD does not accommodate more than 10 simultaneous connections.

    From man sshd_config page:

    MaxSessions
         Specifies the maximum number of open sessions permitted per net‐
         work connection.  The default is 10.
    
     MaxStartups
         Specifies the maximum number of concurrent unauthenticated con‐
         nections to the SSH daemon.  Additional connections will be
         dropped until authentication succeeds or the LoginGraceTime
         expires for a connection.  The default is 10.
    
         Alternatively, random early drop can be enabled by specifying the
         three colon separated values “start:rate:full” (e.g. "10:30:60").
         sshd(8) will refuse connection attempts with a probability of
         “rate/100” (30%) if there are currently “start” (10) unauthenti‐
         cated connections.  The probability increases linearly and all
         connection attempts are refused if the number of unauthenticated
         connections reaches “full” (60).
    

    If you haven’t changed these, your server won’t handle more than 10 simultaneous connections. Accessing your repositories via SSH does not take long; thus, continuously retrying will eventually connect as other peoples git pushes and git pulls etc complete.

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

Sidebar

Related Questions

I have myself a self-hosted WCF server setup, which serves a clientaccesspolicy.xml and an
I have created a self-hosted wordpress blog and on my ftp server everything is
I have Laconica (self hosted twitter ) configured on my local intranet and would
I have a self hosted TCP based WCF service. I am now building a
I have a self-hosted WCF service with the InstanceContextMode set to PerSession. How can
I have a bunch of self-hosted WCF services. Everything's working fine but I'm look
I have a self hosted WCF Rest service that I am using to simulate
I have been doing a lot of work with WCF self hosted applications. I
I have a self-hosted WCF service and I'm having the following problem: 15 minutes
I have a self-hosted WCF service running as a windows service using the WebAPI

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.