QUOTE
Originally posted by mv_
I have user trying admin/root passowrds via ssh almost every day, he is from dialup, because every try he has different IP address. The last two octects only get changed..
how to ban let's say 213.22.*.* ?
Make sure your server requires two logins. Nobody should ever be logging in as root using SSH, not even you. All logins thru SSH should be to Admin -> then su as root.
Find: /etc/ssh/sshd_config
Find PERMITROOTLOGINS = Yes and change it to No
Restart OpenSSH /etc/rc.d/init.d/sshd restart
Test to make sure you can login as Admin -> then Root by opening a second session. Dont disconnect from the first session. If you can login as Admin then Root your set. If you cant something has been set incorrectly.
If this is a Cpanel box then setup is much harder. You will need to set the wheelgroup to include ADMIN from WHM then make the changes above. Test test test!
This makes it harder for somebody to login and requires two pw's instead of just one.