Skip to content

Instantly share code, notes, and snippets.

@kitallis
Last active September 29, 2018 22:02
Show Gist options
  • Save kitallis/22790d0159c402c168fae4c5ec82e2bb to your computer and use it in GitHub Desktop.
Save kitallis/22790d0159c402c168fae4c5ec82e2bb to your computer and use it in GitHub Desktop.
quickly setup a Digital Ocean debian 9 box
adduser kitallis
usermod -aG sudo kitallis
apt update
apt upgrade
apt install ufw
ufw app list
ufw allow OpenSSH
ufw enable
ufw status
cp -r ~/.ssh /home/kitallis
chown -R kitallis:kitallis /home/kitallis/.ssh
apt install man-db
apt install emacs
apt install htop
apt install git
echo -e "ClientAliveInterval 120\nClientAliveCountMax 720" >> /etc/ssh/sshd_config
service ssh restart
update-alternatives --config editor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment