以下のサイトを参考にCentOSの設定についてまとめました。
http://tanaka.sakura.ad.jp/archives/001065.html

 _____________________________________________________
| 1.SSHのポート番号変更        |
|                         |
| 2.公開鍵認証でのSSH接続      |
|                         |
| 3.iptablesの設定             |
|                         |
| 4.不要なデーモンのストップ      |
|                         |
| 5.いらないコンソールの無効化    |
|                         |
| 6.SELINUXの無効化          |
|                         |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1.SSHのポート番号変更
 /etc/ssh/sshd_config

#Post 22
Port 20222


2.公開鍵認証でのssh接続
  公開鍵を利用することでパスワードでログインできなくします。
  クライアントでキーペア(秘密鍵と公開鍵)を生成し、サーバーには公開鍵だけを登録する。
  キーペアの生成方法はクライアントによって異なる
    2.1 teratermの場合
      「設定」→「SSH鍵生成」
    2.2 OpenSSH
 
  /etc/ssh/sshd_configでパスワードでのログインを禁止することも忘れずに
   PermitRootLogin without-password

3.iptablesの設定
   sshとhttp以外はサーバーへアクセスできないようにするのが吉。
   /etc/sysconfig/iptables

4.不要なデーモンのストップ
   CentOSではびっくりするくらいの不要なデーモンが立ち上がっている
   以下のコマンドで不要デーモンをoffに

   chkconfig auditd off
   chkconfig autofs off
chkconfig avahi-daemon off
chkconfig buluetooth off
chkconfig cups off
chkconfig firstboot off
chkconfig gpm off
chkconfig haldaemon off
chkconfig hidd off
chkconfig isdn off
chkconfig kudzu off
chkconfig lvm2-monitor off
chkconfig mcstrans off
chkconfig mdmonitor off
chkconfig messagebus off
chkconfig netfs off
chkconfig nfslock off
chkconfig pcscd off
chkconfig portmap off
chkconfig rawdevices off
chkconfig restorecond off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig smartd off
chkconfig xfs off
chkconfig yum-updatesd off

5.いらないコンソールを無効にする
/etc/inittab

#2:2345:respawn:/sbin/mingetty tty2
#3:2345:respawn:/sbin/mingetty tty3
#4:2345:respawn:/sbin/mingetty tty4
#5:2345:respawn:/sbin/mingetty tty5
#6:2345:respawn:/sbin/mingetty tty6

6.selinuxを無効にする
  /etc/sysconfig/selinux

SELINUX=disabled