Having just locked myself out by fiddling around with config (I strongly suspect) and stuffing up SSH, I just want to ask if there are any completely general tips for protecting yourself from getting locked out by config changes, user account / password changes or bad updates?
Ideas (very vague, ignorant, ill-defined):
* backdoors (well-secured ones), auxiliary protocols for remote admin;
* second user account
*'Revert config' batch jobs that run in a timer, back up the config and auto-revert it on a timeout. (My router has exactly this, auto protection against not being able to log in to it following a bad config change). But of course, such things had to be written, and correctly, no bugs, and you have to remember to set the timer. Could perhaps try and automate such with something general and re-usable.
*backups - don't know how to do a general complete backup, and in any case could not do a restore if I am locked out.