Skip to content

Instantly share code, notes, and snippets.

@kitallis
Last active Sep 29, 2018
Embed
What would you like to do?
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