Forgot Your WordPress Password on AWS Lightsail? Here’s How to Get Back In
Sign into your Lightsail server using SSH or the browser terminal.
Go to your WordPress directory using the following command:
cd /opt/bitnami/wordpressIf you don’t remember your username, you can list all users with this command:
sudo wp user listSimply reset the password using WP-CLI (replace “USERNAME” with your actual username and “NewPasswordHere” with what you want your new password to be.
sudo wp user update YOURUSERNAME --user_pass=NewPasswordHereNow go to your WordPress admin login and login using your new credentials.
https://yourdomain.com/wp-login.php