I'm interested in the steps you make when you need to set up a new Linux (preferably CentOS) server, putting a emphasis on security, like changing SSH port, limiting root SSH access, etc.

link|improve this question
This question is far too broad, even for general best-practices. The link Zoredache posted is a good start. – sysadmin1138 Nov 14 '11 at 18:42
feedback

closed as not a real question by mdpc, Iain, Zoredache, sysadmin1138 Nov 14 '11 at 18:42

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. See the FAQ for guidance on how to improve it.

1 Answer

I usually don't change SSH port, because it complicates setups (now I should remember which port I use on which server and I have 20+ of them) and confuses me and my customers. I use DenyHosts instead, it is available from an EPEL repo. It's also good to disable password-based authentication in favor of key-based in sshd_config (PasswordAuthentication no and PubkeyAuthentication yes), at least for the root account (PermitRootLogin without-password). Of course empty passwords should be disabled, but I think it's a default setting nowadays (PermitEmptyPasswords no).

link|improve this answer
thanks for the tip. any other steps? :) – feketegy Nov 14 '11 at 19:17
feedback

Not the answer you're looking for? Browse other questions tagged or ask your own question.