Skip to content

Instantly share code, notes, and snippets.

@timlinux
Last active April 12, 2018 11:23
Show Gist options
  • Select an option

  • Save timlinux/4601b5247af46935a37b9b8102a72eff to your computer and use it in GitHub Desktop.

Select an option

Save timlinux/4601b5247af46935a37b9b8102a72eff to your computer and use it in GitHub Desktop.
docker-node-setup
#!/bin/bash
# Setup script for new cloud nodes
# Will require key based authentication for SSH
# Will enabled automatic package updates
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
/etc/init.d/ssh restart
apt install -y byobu links2 vim python-pip htop figlet
apt install -y chkrootkit sshguard logwatch
apt install -y unattended-upgrades
echo $HOSTNAME | figlet >> /etc/issue.net
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment