Skip to content

Instantly share code, notes, and snippets.

@Hotfirenet
Created December 18, 2016 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hotfirenet/cb2a64052b17c02afb54d60eae961104 to your computer and use it in GitHub Desktop.
Save Hotfirenet/cb2a64052b17c02afb54d60eae961104 to your computer and use it in GitHub Desktop.
#!/bin/sh
apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get autoclean -y
apt-get install sudo fail2ban rkhunter -y
sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config
service ssh restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment