Last active
September 29, 2018 22:02
-
-
Save kitallis/22790d0159c402c168fae4c5ec82e2bb to your computer and use it in GitHub Desktop.
quickly setup a Digital Ocean debian 9 box
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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