Revert "Allow configuration of SSH rekey values"
Not supported in sshd 0.9.0 which is being merged into master
via stable-2.9
This reverts commit 6f721702f0.
Change-Id: Ie505d6211eff9d2aab6ab5c6125f926d2aa2237e
This commit is contained in:
@@ -3189,24 +3189,6 @@ programmatic configuration.
|
||||
+
|
||||
By default, true.
|
||||
|
||||
[[sshd.rekeyBytesLimit]]sshd.rekeyBytesLimit::
|
||||
+
|
||||
Sshd Mina will issue a rekeying after a certain amount of data.
|
||||
This configuration option allows you to tweak that setting.
|
||||
+
|
||||
By default, 1073741824 (bytes, 1GB).
|
||||
+
|
||||
The rekeyBytesLimit cannot be set to lower than 32.
|
||||
|
||||
[[sshd.rekeyTimeLimit]]sshd.rekeyTimeLimit::
|
||||
+
|
||||
Sshd Mina will issue a rekeying after a certain amount of time.
|
||||
This configuration option allows you to tweak that setting.
|
||||
+
|
||||
By default, 1h.
|
||||
+
|
||||
Set to 0 to disable this check.
|
||||
|
||||
[[suggest]]
|
||||
=== Section suggest
|
||||
|
||||
|
||||
@@ -189,15 +189,6 @@ public class SshDaemon extends SshServer implements SshInfo, LifecycleListener {
|
||||
IDLE_TIMEOUT,
|
||||
String.valueOf(SECONDS.toMillis(idleTimeoutSeconds)));
|
||||
|
||||
long rekeyTimeLimit = ConfigUtil.getTimeUnit(cfg, "sshd", null,
|
||||
"rekeyTimeLimit", 3600, SECONDS);
|
||||
getProperties().put(
|
||||
REKEY_TIME_LIMIT,
|
||||
String.valueOf(SECONDS.toMillis(rekeyTimeLimit)));
|
||||
|
||||
getProperties().put(REKEY_BYTES_LIMIT,
|
||||
String.valueOf(cfg.getLong("sshd", "rekeyBytesLimit", 1024 * 1024 * 1024 /* 1GB */)));
|
||||
|
||||
final int maxConnectionsPerUser =
|
||||
cfg.getInt("sshd", "maxConnectionsPerUser", 64);
|
||||
if (0 < maxConnectionsPerUser) {
|
||||
|
||||
Reference in New Issue
Block a user