- yum update
- turn off any services that you won’t use:
/etc/init.d/cups stop
chkconfig --level 2345 cups off - move sshd to another port (stops most scanning), as well as permit only version 2, and no ‘root’ login (all in /etc/ssh/sshd_config). Restart sshd after the changes
- Turn on the firewall (iptables). Note, that in my default install, it was “disabled”, which means it was running, but had no config in /etc/sysconfig/iptables. Just run system-config-securitylevel, and then restart it
/etc/init.d/iptables restart - set up your ssh key, as well as your authorized keys:
ssh-keygen -t dsa
vi ~/.ssh/auhtorized_keys2
chmod 600 ~/.ssh/authorized_keys2
Popularity: 45%
Comments: (2)