Information
SSH connections should be limited.
Rationale:
SSH is a common management protocol, so is often targeted by attackers trying to gain access to routers or execute Denial of Service (DoS) attacks.
To limit the effectiveness of DoS and Brute Force attacks targeting the JUNOS device using the SSH service the maximum number of concurrent connections should be limited. Any sessions attempted once this limit is reached will be rejected. A maximum limit of 10 concurrent sessions is recommended for most environments.
Solution
To restrict concurrent SSH connections, issue the following command from the [edit system services ssh] hierarchy:
[edit system services ssh]
user@host#set connection-limit <limit>
NOTE - On some platforms the maximum configuration connection limit may be significantly lower than 10, for example, on an SRX110 the connection limit can be set to a value between 1 and 3.
Default Value:
Up to 75 concurrent sessions are accepted by default on most current platforms.