Home / Linux Admin /
A scripted implementation of this advice can be found in the assistance scripts repo. If you trust me well enough to pipe a script into execution straight from downloading (ironically not the best security practice), I have a convenience url set up so that you may do the following: perl -e "$(curl -fsSL https://security.redig.me)" (consider this script deprecated with no current replacement)
apt-get install unattended-upgrades
/etc/apt/apt.conf.d/50unattended-upgrades"o=Raspbian,n=jessie";Unattended-Upgrade::Mail "he@ho.hum";
bsd-mailx installed and configured (see other doc)adduser example_useradduser example_user sudodeluser --remove-home <username>passwd -l root
sudo and su, you just cannot log directly into rootapt install mosh
PermitRootLogin noPasswordAuthentication noAddressFamily inet for IPv4 listening onlyAddressFamily inet6 for IPv6sudo service ssh restart restart ssh afterwardssudo netstat -tulpn (part of net-tools package)apt-get install ufw gufw (ufw is command line, gufw is gui)ufw statusufw helpufw allow 22
ufw allow from 192.168.1.0/24 to any port 137 #local samba1ufw allow from 192.168.1.0/24 to any port 445 #local samba2ufw enablethis document last modified: September 21 2024 23:59
Home / Linux Admin /