Running ssh on unreserved ports
Alex
mysqlstudent at gmail.com
Fri Feb 18 21:53:43 UTC 2011
Hi,
>> I'd like to move it to a higher port to avoid the normal doorknob
>> rattling that occurs with ssh running on a public server.
> You can do this from iptables:
>
> 1. block port 22 in iptables
>
> 2. Add the following rule:
> iptables -t nat -A PREROUTING -p tcp -m tcp --dport 2345 -m state --state NEW -j REDIRECT --to-ports 22
Ah, great trick. Definitely have to try that.
Thanks,
Alex
More information about the users
mailing list