- Use a password manager and a unique long random password for every account; remember only the manager's master passphrase.
- Turn on two-factor authentication wherever offered. Strength, best first: hardware security keys (FIDO2/passkeys) → authenticator-app codes (TOTP) → SMS (better than nothing, weak against SIM swapping).
- Store recovery codes offline (printed or in the manager) and know how to recover each important account.
- Protect the e-mail account most: it resets everything else.
- Check whether an address appeared in a breach (haveibeenpwned.com) and change those passwords.
- Never reuse the same password between a site and a server; never type credentials into a link from an unexpected message.
On servers, prefer SSH keys over passwords and keep API tokens in a secret store or environment, not in repositories.