2000-01-13 23:22:17 +00:00
|
|
|
--- sshd_config.orig Fri Jan 7 01:27:30 2000
|
|
|
|
+++ sshd_config Fri Jan 7 01:31:01 2000
|
|
|
|
@@ -3,12 +3,13 @@
|
1999-11-24 03:36:23 +00:00
|
|
|
Port 22
|
2000-01-13 23:22:17 +00:00
|
|
|
#ListenAddress 0.0.0.0
|
|
|
|
#ListenAddress ::
|
1999-11-24 03:36:23 +00:00
|
|
|
-HostKey /etc/ssh_host_key
|
|
|
|
+HostKey __PREFIX__/etc/ssh_host_key
|
|
|
|
ServerKeyBits 768
|
1999-12-04 12:40:39 +00:00
|
|
|
-LoginGraceTime 600
|
In the meantime (while things are being worked and decided on on the
OpenBSD OpenSSH front), add ConnectionsPerPeriod to prevent DoS via
running the system out of resources. In reality, this wouldn't
be a full DoS, but would make a system slower, but this is a better
thing to do than let the system get loaded down.
So here we are, rate-limiting. The default settings are now:
Five connections are allowed to authenticate (and not be rejected) in
a period of ten seconds.
One minute is given for login grace time.
More work in this area is being done by alfred@FreeBSD.org and
markus@OpenBSD.org, at the very least. This is, essentially, a
stopgap solution; however, it is a properly implemented and documented
one, and has an easily modifiable framework.
1999-12-06 06:32:22 +00:00
|
|
|
+LoginGraceTime 60
|
1999-11-24 03:36:23 +00:00
|
|
|
KeyRegenerationInterval 3600
|
|
|
|
-PermitRootLogin yes
|
In the meantime (while things are being worked and decided on on the
OpenBSD OpenSSH front), add ConnectionsPerPeriod to prevent DoS via
running the system out of resources. In reality, this wouldn't
be a full DoS, but would make a system slower, but this is a better
thing to do than let the system get loaded down.
So here we are, rate-limiting. The default settings are now:
Five connections are allowed to authenticate (and not be rejected) in
a period of ten seconds.
One minute is given for login grace time.
More work in this area is being done by alfred@FreeBSD.org and
markus@OpenBSD.org, at the very least. This is, essentially, a
stopgap solution; however, it is a properly implemented and documented
one, and has an easily modifiable framework.
1999-12-06 06:32:22 +00:00
|
|
|
-#
|
|
|
|
+PermitRootLogin no
|
|
|
|
+# Rate-limit sshd connections to 5 connections per 10 seconds
|
|
|
|
+ConnectionsPerPeriod 5/10
|
1999-11-24 03:36:23 +00:00
|
|
|
# Don't read ~/.rhosts and ~/.shosts files
|
|
|
|
IgnoreRhosts yes
|
In the meantime (while things are being worked and decided on on the
OpenBSD OpenSSH front), add ConnectionsPerPeriod to prevent DoS via
running the system out of resources. In reality, this wouldn't
be a full DoS, but would make a system slower, but this is a better
thing to do than let the system get loaded down.
So here we are, rate-limiting. The default settings are now:
Five connections are allowed to authenticate (and not be rejected) in
a period of ten seconds.
One minute is given for login grace time.
More work in this area is being done by alfred@FreeBSD.org and
markus@OpenBSD.org, at the very least. This is, essentially, a
stopgap solution; however, it is a properly implemented and documented
one, and has an easily modifiable framework.
1999-12-06 06:32:22 +00:00
|
|
|
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
|