3 ms·
Moving SSH off port 22 has no security benefits. Anyone can still easily track down if you have SSH running and on what port. The only benefit moving SSH has i
by laumars 13y ago
Moving SSH off port 22 has no security benefits. Anyone can still easily track down if you have SSH running and on what port.
The only benefit moving SSH has is to reduce the reporting (as you also mentioned).
I just wanted to make that clear in case someone mistook your post to assume that switching SSHs default port made them more secure
- djrogers 13y agoNot entirely true. Moving your SSH port will not prevent a targeted attacker from finding it, it'll barely slow them down. What it will do however is prevent automated script-kiddy scanning tools from seeing port 22 open, scraping the banner, and adding your IP to a list of target to brute force/exploit. That's a good thing, and is absolutely, by any definition, a security benefit.
- marcosdumay 13y agoAutomated tools already won't get into your machine if you disable passwords. And they can easily adapt to non standard ports if the authors see any worth in doing that. Setting a non-standard port to ssh is akin to adding a wood plank to the door of a safe with state of the art locks and 20" steel walls. A very annoying wood plank, by the way.
- laumars 13y agoWrong. That's how NOT to set up SSH. Use keys and / or log scanning to auto firewall failed login attempts. I recommend fail2ban, but there's a few daemons that do the same thing.
- vacri 13y agoA friend of mine runs ssh on 443, because if he's at a hotel with a restrictive outbound firewall, he'll still be able to get into his machines...
- laumars 13y agoThat's fine because it's a not for security reasons. In fact I've been known to do the same myself (tunnel web traffic over an SSH server running on 443 to circumvent firewalls on public WiFi hotspots)