just some simple scripts i use when setting up a server. Probably i should learn some scripting tool...
Adds a new user and pulls their authorized_keys
from github, and disables password authentication at the same time. Usage:
./add_user.sh -u <username> -p <password> -k <github username>
Make sure you test before you log out...
enables automatic updates on the server.
Disables password authentication in sshd.
Removes snapd and updates server using dist-upgrade
, then installs nano
and curl