Skip to content

Instantly share code, notes, and snippets.

@aszel
Created April 22, 2014 13:20
Show Gist options
  • Save aszel/11178954 to your computer and use it in GitHub Desktop.
Save aszel/11178954 to your computer and use it in GitHub Desktop.
Sicherheit RaspberryPi
1.
Default-User "pi" umbenennen
usermod --move-home --login martin --home /home/martin pi
2.
root-login verbieten
sudo vi /etc/ssh/sshd_config
PermitRootLogin no
SSH-Deamon neustarten
sudo /etc/init.d/ssh restart
3.
Apache sicherer machen
Autoindexer abschalten
rm /etc/apache2/mods-enabled/autoindex.conf
rm /etc/apache2/mods-enabled/autoindex.load
Server-Infos abschalten
vi /etc/apache2/conf.d/security
ServerTokens Prod
ServerSignature Off
TraceEnable Off
Apache neustarten
service apache2 restart
4.
Firewall
OFFEN.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment