Forgot Your WordPress Password on AWS Lightsail? Here’s How to Get Back In

Gerry Manzari · February 15, 2026 · 1 min read

Sign in to your Lightsail server using SSH or the browser terminal.

Go to your WordPress directory:

Bash
cd /opt/bitnami/wordpress

If you don’t remember your username, list all users:

Bash
sudo wp user list

Reset the password using WP-CLI:

Bash
sudo wp user update YOURUSERNAME --user_pass=NewPasswordHere

Now log in at:

Bash
https://yourdomain.com/wp-login.php