Last active
September 4, 2015 15:21
-
-
Save RobertCNelson/fcbe4d90ad4b40e4d8d9 to your computer and use it in GitHub Desktop.
Server Setup
This file contains hidden or 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
| 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