server setup

Basic Linux server Builds 
 
apt update; apt -y upgrade
apt -y install wget vim curl iputils-ping -y net-tools -y
 
SSH Security
 nano -w /etc/ssh/sshd_config
PermitRootLogin prohibit-password
PasswordAuthentication no
 
Time
dpkg-reconfigure tzdata
apt update && apt install ntp -y
 
reboot
 
apt install haveged -y
apt autoremove -y
sh -c 'echo "sudo apt autoremove -y" >> /etc/cron.monthly/autoremove'
chmod +x /etc/cron.monthly/autoremove
 
 
firewall
ufw allow 80
ufw allow 443 
ufw allow from 1.2.3.4 to any port 2222
ufw enable