Hostblock is a PAM module written in ruby, which blocks login from IP addresses when ssh login fails after pre-set number of times. It uses sqlite3 or postgresql backend to store data.

README Debian Lenny

README Debian Etch

README Debian Sarge