On Github teopeurt / cchub-cloud-security
Created by Don Onwunumah / @teopeurt
# /sbin/chkconfig --list |grep '3:on' # chkconfig serviceName off # yum -y remove package-name # sudo apt-get remove package-name
# netstat -tulpn
# vi /etc/ssh/sshd_config
# yum updates # yum check-update
# apt-get update
/etc/init.d/iptables – init script to start|stop|restart and save rulesets./etc/sysconfig/iptables – where Rulesets are saved./sbin/iptables – binary.
/var/log/message – Where whole system logs or current activity logs are available./var/log/auth.log – Authentication logs./var/log/kern.log – Kernel logs./var/log/cron.log – Crond logs (cron job)./var/log/maillog – Mail server logs./var/log/boot.log – System boot log./var/log/mysqld.log – MySQL database server log file./var/log/secure – Authentication log./var/log/utmp or /var/log/wtmp : Login records file./var/log/yum.log: Yum log files.
$ ssh-keygen -t rsa -C "your_email@example.com" # Creates a new ssh key, using the provided email as a label # Generating public/private rsa key pair. # Enter file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter] $ ssh-add id_rsa