sshd port 22 renumbering or sshd limiting

teddymills

Member
Jul 25, 2005
8
0
151
I would like to change SSHD from port 22 to another port. that is under 1024.
Because people keep hammering away on port 22.

If that is not good, then how can I change it so that SSHD limits users to waiting 5 minutes after 3 bad login attempts?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
30
473
Go on, have a guess
Changing the port is a good idea. You really ought to use an ephemeral port (i.e. >1024) and you can do that in /etc/ssh/sshd_config then restart sshd. Remember to open the port if you use a firewall.