Locked out over SSH
Restore every saved copy and remove the file you added:/etc/ssh/sshd_config is not sufficient. The files in
/etc/ssh/sshd_config.d/ are read first and keep your settings in force until
they are restored as well.
Log in with your password, fix your key, and start again at step 2 of
SSH Access. Password login must be disabled again
before the machine will verify.
Removed a key you still needed
Restore the backup taken before pruning:Firewall blocking access
Locked an account by mistake
-U alone leaves the expiry date set, and the account
still refuses logins.