News for hackers. Stuff that matters.
Re:Set Up Your Server Right, Part 1 by nimbix on Wednesday August 05, 2009 @07:43PM (#744494)
My 3 most important rules for Linux servers are:

1. Run software update!

2. Don't allow everyone to access sensitive ports. Moving SSH to some nonstandard port is not enough. Use iptables to limit access to it from only certain static IPs.

3. Run SELinux! If you think its only purpose is to make your life more difficult, you have a lot more studying to do. (Also, make sure you don't use a distro that comes with a badly broken selinux config)

UPDATE: formatting

Re:Set Up Your Server Right, Part 1 by ohlol on Thursday August 06, 2009 @02:43AM (#744939)
I've never been a fan of changing SSH's port.

If you're going to firewall SSH, changing the port is redundant.. The only reason to change the port is to prevent brute force attacks, and the firewall will do that for you.

Re:Set Up Your Server Right, Part 1 by LogicHoleFlaw on Thursday August 06, 2009 @08:40AM (#745313)
Still.... it really cleans the logs up. It's not safer, but the logs do become easier to read in a pinch.
Re:Set Up Your Server Right, Part 1 by ohlol on Thursday August 06, 2009 @11:24AM (#745659)
Huh? The firewall logs? Got grep -v?
Re:Set Up Your Server Right, Part 1 by weaksauce on Thursday August 06, 2009 @12:47PM (#745848)
The thing is that a lot of the simple scripts only bang on 22. Moving the port means that a lot of scripts will move on to another server.
Re:Set Up Your Server Right, Part 1 by quellhorst on Wednesday August 05, 2009 @11:54PM (#744775)
Turn off password logins and move ssh to a different port.
Re:Set Up Your Server Right, Part 1 by uggedal on Thursday August 06, 2009 @10:31AM (#745516)
And disable root login from ssh.
Re:Set Up Your Server Right, Part 1 by tdavis on Wednesday August 05, 2009 @09:11PM (#744607)
Use iptables to limit access to it from only certain static IPs.

Or just disable password logins entirely.

Re:Set Up Your Server Right, Part 1 by smanek on Wednesday August 05, 2009 @09:40PM (#744636)
Yeah, that's really much more secure ;-)

http://www.debian.org/security/2008/dsa-1571

Re:Set Up Your Server Right, Part 1 by nimbix on Wednesday August 05, 2009 @10:36PM (#744680)
This would only protect you against password guessing, but not against any remotely exploitable security holes in the SSH (or any other) daemon.