Debian's sshd_config has AcceptEnv LANG LC_*, so a PC with e.g.
en_GB.UTF-8 makes bash print setlocale warnings on every login because
only en_US.UTF-8 is generated on the server. Comment out AcceptEnv during
hardening so the server keeps its own locale.
useradd leaves the password field as '!'. After hardening sets UsePAM no,
sshd treats that account as locked and refuses even key logins, so the
bootstrap stopped with 'Key login failed after hardening'. Set the field to
'*' (no password, not locked).
The key-only deploy user has no password, so sudo for install-rubix.sh and
up.sh could never succeed. Add /etc/sudoers.d/90-rubix-<user> with NOPASSWD,
checked with visudo, and install sudo if the image lacks it.
- Remove existing host and host:port fingerprints before first password login test
- Prevent host key mismatch failures when reprovisioned VPS reuses the same IP or alias