The scripts run/installed on the server are based on what was given to me by Digitalocean in 2019, so they may have diverged a bit since.
10 lines
249 B
Bash
Executable File
10 lines
249 B
Bash
Executable File
#!/bin/bash
|
|
set -eo pipefail
|
|
|
|
echo '--> Prevent login until after setup is complete'
|
|
# Be a bit of a dork about login in
|
|
cat >>/etc/ssh/sshd_config <<EOM
|
|
Match User root
|
|
ForceCommand echo "Please wait while we get your droplet ready..."
|
|
EOM
|