3 ms·
> What's _gained_ here, except for a potentially smaller log file? - Smaller and easier to parse log files - Less time wasted parsing log files (or creating s
by guiambros 14y ago
> What's _gained_ here, except for a potentially smaller log file?
- Smaller and easier to parse log files
- Less time wasted parsing log files (or creating scripts to filter out automated attacks)
- Less RAM & CPU cycles (particularly important when running low memory VMs)
I still fail to see a reason to NOT do that.
It won't increase your overall security, but it doesn't reduce it either, so why not do it? Just to save you from adding 'alias ssh=ssh -P xx' to your .profile?
- icebraining 14y agoJust to save you from adding 'alias ssh=ssh -P xx' to your .profile? Or better yet, add it to your .ssh/config file: Host myhost Hostname myhost.com Port xxxx This way, it doesn't conflict with other hosts.
- viraptor 14y agoYou can redirect ssh failure messages to a specific log file, separate from all others, so that shouldn't be an issue. Also you don't need to alias - .ssh/config should work more transparently here.
- guiambros 14y ago> You can redirect ssh failure messages to a specific log > file, separate from all others That's exactly the point. Now you redirect ssh failure messages to a specific log file (with all the garbage and automated attacks), and you'll very soon start to ignore it. And then your overall security is reduced, simply because you aren't paying attention. Or, you can spend time combing through hundreds of invalid messages, trying to separate the wheat from the chaff. Either in one or multiple separate files, it doesn't really matter. Anyway, not trying to convince anybody here. I respect the opinion that some may prefer to leave everything as the default. For me, I just vehemently disagree with OP's point that using a non-std port doesn't have concrete benefits and/or reduce the security. To me it's exactly the opposite. At least if you know what (and why) you're doing.