In SSHD Configuration what does "MaxStartups 10:30:60" mean?

84,847

I Want to know what is the meaning of MaxStartups 10:30:60?

10: Number of unauthenticated connections before we start dropping

30: Percentage chance of dropping once we reach 10 (increases linearly for more than 10)

60: Maximum number of connections at which we start dropping everything

Share:
84,847
Syedsma
Author by

Syedsma

Updated on July 08, 2022

Comments

  • Syedsma
    Syedsma almost 2 years

    Problem Is: Some SFTP connections are failing in customer environment But using sample code if i test with same server no connection is failed. may be in customer envi many parallel sftp connection started at a time.

    I Want to know what is the meaning of MaxStartups 10:30:60

    In the above i know only 10 , which means maximum unauthenticated ssh connection allowed. means at same time 12 sssh connection request comes 2 request fail and 10 success.

    What is the mean of 30 and 60 ?

  • phooji
    phooji over 13 years
    Source: linux.die.net/man/5/sshd_config "Alternatively, random early drop can be enabled by specifying the three colon separated values ''start:rate:full'' (e.g., "10:30:60"). sshd will refuse connection attempts with a probability of ''rate/100'' (30%) if there are currently ''start'' (10) unauthenticated connections. The probability increases linearly and all connection attempts are refused if the number of unauthenticated connections reaches ''full'' (60)."
  • Syedsma
    Syedsma over 13 years
    Suppose if we want to support 500 connection at a time and no connction must fail then what value we need to set in MaxStartups
  • phooji
    phooji over 13 years
    Just 500 with no colons.