passwd
apt-get update
apt-get upgrade
apt-get install fail2ban
useradd deploy
mkdir /home/deploy
mkdir /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
vim /home/deploy/.ssh/authorized_keys
chmod 400 /home/deploy/.ssh/authorized_keys
chown deploy:deploy /home/deploy -R
passwd deploy
visudo
root ALL=(ALL) ALL
deploy ALL=(ALL) ALL
vim /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
service ssh restart
#ufw allow from {your-ip} to any port 22
ufw allow 22
ufw allow 80
ufw allow 443
ufw enable
vi /etc/passwd
# add /bin/bash to deploy
cp /root/.bashrc /home/deploy/ && cp /root/.profile /home/deploy/
chown deploy:deploy /home/deploy -R
http://plusbryan.com/my-first-5-minutes-on-a-server-or-essential-security-for-linux-servers