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

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

Leave a Reply

Your email address will not be published. Required fields are marked *