← Back to context

Comment by hossbeast

8 years ago

I would love to know how to configure this for ssh connection attempts

Ssh does support compression, but it seems to be only if the client requests it (ssh -C).

You could, though, write a pam module to trickle data out very slowly. Maybe pam_python would be easier to experiment with.

I use pam_shield to just null route ssh connections with X failed login attempts. There's no retaliation in that approach, but it does stop the brute forcing.

If you are being adventurous, I guess you can just let them log in for a special user that has the shell set to a program that sends single characters very slowly. It is probably quite insecure, though.

I have something similar on my VPS, edit /etc/issues.net to this

    Permission denied. Please try again.