Re:There's No Protection In High Ports
by icebraining on Sunday February 17, 2013 @05:40PM
(#5237049)
Just 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.You 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.
Re:There's No Protection In High Ports
by guiambros on Tuesday February 19, 2013 @10:20PM
(#5248761)
> 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.
- 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?