Skip to content

Latest commit

 

History

History
55 lines (48 loc) · 1.08 KB

new-vps-todo.md

File metadata and controls

55 lines (48 loc) · 1.08 KB

Things to do when deploying a new server

Update

apt-get update
apt-get upgrade
apt-get dist-upgrade
reboot

Install Musthaves

apt-get install vim tmux zsh host whoami htop sudo git ufw python-setuptools python-dev build-essential

User Management

adduser f3bruary
usermod -aG sudo f3bruary
#echo "%sudo   ALL=(ALL:ALL) ALL" > /etc/sudoers

Firewall

sudo ufw disable
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
#sudo ufw allow port/tcp
#sudo ufw allow from 0.0.0.0
#sudo ufw allow from 0.0.0.0/24 to any port 22
sudo ufw enable

SSH Hardening

/etc/ssh/sshd_conf

#Port xxxx
Protocol 2
PermitRootLogin no
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
X11Forwarding no
AllowUsers f3bruary

Other

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Install Vundle

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Install Powerline

sudo pip install powerline-status