ssh keys
mkdir ~/.ssh
chmod 700 ~/.ssh
curl https://pubkey.bkatz.net/ >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
service sshd restart
bashrc
echo 'export HISTTIMEFORMAT="%d/%m/%y %T "' >> ~/.bashrc
echo 'HISTSIZE=-1' >> ~/.bashrc
echo 'HISTFILESIZE=-1' >> ~/.bashrc
source ~/.bashrc
for disable selinux (rhel)
sed -i 's/^SELINUX\=.*/SELINUX\=disabled/g' /etc/selinux/config
reboot
timezone
timedatectl set-timezone Asia/Jerusalem
firewalld (centos 7 or high)
firewall-cmd --zone=public --add-service=http
firewall-cmd --zone=public --add-service=https
firewall-cmd --zone=public --add-service=ftp
firewall-cmd --runtime-to-permanent
basic software
yum install -y zip unzip wget