Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Last active September 4, 2015 15:21
Show Gist options
  • Select an option

  • Save RobertCNelson/fcbe4d90ad4b40e4d8d9 to your computer and use it in GitHub Desktop.

Select an option

Save RobertCNelson/fcbe4d90ad4b40e4d8d9 to your computer and use it in GitHub Desktop.
Server Setup
dpkg-reconfigure tzdata
apt-get update ;\
apt-get install apt-cacher-ng debootstrap fail2ban git-core kmod; \
apt-get upgrade ;\
echo "loop" >> /etc/modules-load.d/modules.conf
systemctl enable systemd-timesyncd.service || true
adduser rcnee
usermod -a -G sudo,systemd-journal rcnee
adduser builder
logout
ssh rcnee@ip
ssh-keygen
chown -R rcnee:rcnee .ssh ;\
chmod 700 .ssh ;\
touch .ssh/authorized_keys ;\
chmod 600 .ssh/authorized_keys
sudo nano /etc/ssh/sshd_config
PasswordAuthentication no
PermitRootLogin no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment