|
|
|
|
|
by gmuslera
4666 days ago
|
|
If you think someone could get in thru the ssh port (exploiting an undisclosed vulnerability or with brute force password cracking) moving it elsewhere is not a long term solution. fail2ban is good to avoid brute force attacks, but portknocking with i.e. fwknop will be safer in more situations. If a service is not meant for the public then they shouldn't be able to even notice that is there. |
|
Even if fail2ban and others were perfect, all it would take is the sysadmin customizing the log format to include some random field and all the sudden it's possible for an attacker to block every IP address with one request.
Source: http://seclists.org/fulldisclosure/2007/Jun/138
A better alternative is something like pam_abl which only protects logins to a user on the system but with it ssh is essentially unbruteforceable.