Server Administration
Connect to a Remote Server Using SSH Keys
Log in to a remote server without a password using SSH keys. Generate an ed25519 key pair, copy the public key to the server,…
Server Administration
Log in to a remote server without a password using SSH keys. Generate an ed25519 key pair, copy the public key to the server,…
Database Administration
Reset the MySQL root password from the terminal when you are locked out, using skip-grant-tables recovery mode and ALTER USER to set a new…
Programming
Keep a user logged in across page loads with PHP's built-in session functions. session_start() opens the session, the $_SESSION array holds the data, and…
Programming
Hash and verify passwords in PHP with password_hash() and password_verify(). Store a secure bcrypt hash, check logins against it, and upgrade old hashes automatically…