Skip to content

Instantly share code, notes, and snippets.

@mr-rigden
Created February 23, 2018 20:06
Show Gist options
  • Select an option

  • Save mr-rigden/4b90e6ae63f7e4bdf01407b4605bb04c to your computer and use it in GitHub Desktop.

Select an option

Save mr-rigden/4b90e6ae63f7e4bdf01407b4605bb04c to your computer and use it in GitHub Desktop.
apt-get update
apt-get upgrade
apt-get install git tmux htop
sudo nano /etc/hostname
sudo nano /etc/hosts
adduser jason
usermod -aG sudo jason
ssh-copy-id jason@1.1.1.1
sudo nano /etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
ChallengeResponseAuthentication no
sudo systemctl reload sshd
sudo ufw app list
sudo ufw allow OpenSSH
sudo ufw enable
sudo reboot
sudo timedatectl set-timezone America/Los_Angeles
timedatectl
sudo timedatectl set-ntp on
timedatectl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment