Set up SSH key based authentication

SSH keys come in pairs: a public and a private key. It might be easier to think of them as a lock (public part) and key (private part). You add public key (lock) to the computer you want to connect to, and then you can connect from elswhere and unlock …


Set up support account

(
  username=support
  icon_path=/var/lib/AccountsService/icons/$username

  sudo adduser --gecos '' $username
  sudo adduser $username sudo

  sudo wget -qO "$icon_path" https://shevchuk.co/cog.png
  echo "[User]" | sudo tee /var/lib/AccountsService/users/$username
  echo "Icon=$icon_path" | sudo tee -a /var/lib/AccountsService/users/$username
)

Hide user …