Change the number of consecutive frequent ssh login before temporary blocking the user login
        Posted  
        
            by 
                Kenneth
            
        on Super User
        
        See other posts from Super User
        
            or by Kenneth
        
        
        
        Published on 2012-11-08T06:23:06Z
        Indexed on 
            2012/11/09
            5:06 UTC
        
        
        Read the original article
        Hit count: 545
        
my server currently would temporarily refuse a user to login for certain amount of time (maybe ~20min) if the user consecutively frequent ssh login for 3 times. Can I change this behaviour (say relaxed the definition of frequent maybe from 'within 5 sec' to 'within 10 sec'; or increase the # of consecutive login from 3 to 5)? Thanks.
Added: Ah.. now I think the problem was not with the ssh. I just tried on another newly installed server. consecutive successful login won't block the user. I have no sudo permission on the server I mentioned above. Now I suspect this behaviour may cause by the firewall in the system. Thanks everyone's comments.
ADDED 2: Ah... after some searches. I think the server is using /sbin/iptables to do it as I can see the iptables program is there even though I don't have permission to list the rules. Thanks everyone, special thank to jaume and Mark!
© Super User or respective owner