# setup
-Run `setup.sh` to properly setup all the services. Afterwards, it's recommended to restart the server.
+First of all, make sure you copied your ssh public key on the server. If not, you can use the `ssh-copy-id` command. Next, run `setup.sh` to properly setup all the services. Afterwards, it's recommended to restart the server.
# run
#!/bin/sh
+echo "securing ssh"
+PORT=2222
+sudo sed -i -e 's/^#\?PasswordAuthentication .*/PasswordAuthentication no/' \
+ -e 's/^#\?PermitRootLogin .*/PermitRootLogin no/' \
+ -e 's/^#\?UsePAM .*/UsePAM no/' \
+ -e 's/^#\?Port .*/Port $PORT/' \
+ /etc/ssh/sshd_config
+echo "switched port to $PORT"
+sudo systemctl restart sshd
+
echo "setting up services"
docker compose build
docker compose up mail -d