[SSHd] Increasing wait time?

cpghost cpghost at cordula.ws
Tue May 6 21:54:02 UTC 2008


On Tue, 06 May 2008 19:11:45 +0200
Gilles <gilles.ganault at free.fr> wrote:

> Is there a way to configure SSHd, so that the wait time between login
> attempts increases after X failed tries?

It shouldn't be too hard to patch

  /usr/src/crypto/openssh/sshd.c:server_accept_loop()

by adding code for per-IP truncated binary exponential backoff
algorithm just before forking a child once a connection is
accept(2)ed. It's strange that it hasn't already been done,
being such an obvious and useful addition. ;)

> Thank you.

-- 
Cordula's Web. http://www.cordula.ws/


More information about the freebsd-questions mailing list