thx anyweb... i dont have root allowed to login for few years now... and i have only 4 users on the server. Those who are bruteforcing me never tries the correct user this far... just same strange names (which are in the bruteforce username_file or sth).
I will realy change sshd port, i cant see any other solution at this point.
oh anyweb your iptables rules rules :P
i tried that rule from FluKex but i dont see the results.
root@black:~# ssh faf@my_ip
faf@my_ip's password:
Permission denied, please try again.
faf@my_ip's password:
Permission denied, please try again.
faf@my_ip's password:
Permission denied (publickey,password,keyboard-interactive).
root@black:~# ssh faf@my_ip
ssh: connect to host my_ip port 22: Connection refused
root@black:~# ssh faf@my_ip
ssh: connect to host my_ip port 22: Connection refused
root@black:~#
this is after adding this rule in to the iptables:
Code:
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -m limit --limit 2/minute --limit-burst 1 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j REJECT --reject-with tcp-reset
but before i tried this code:
Code:
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -m limit --limit 2/minute --limit-burst 1 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j REJECT --reject-with tcp-reset
what did i missed on the second code?