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:

BASH
cd /opt/bitnami/wordpress

If you don’t remember your username, you can list all users with this command:

BASH
sudo wp user list

Simply reset the password using WP-CLI (replace “USERNAME” with your actual username and “NewPasswordHere” with what you want your new password to be.

BASH
sudo wp user update YOURUSERNAME --user_pass=NewPasswordHere

Now go to your WordPress admin login and login using your new credentials.

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

Continue Exploring

Explore All Guides

Tools We Recommend

Recommended Tools

Shopify

Shopify is one of the most powerful all-in-one eCommerce platforms available today, designed to help anyone—from beginners to…

4.7
Updraft

UpdraftPlus Review – The Easiest Way to Back Up Your WordPress Website If you’re running a WordPress site…

4.7
Free / Pro from $70/yr (2 sites)
Zillion Designs

At manzari.com, we’ve been using Zillion Designs since 2015 as our go-to platform for logo design and brand…

4.5
From $199 (+ 20% processing fee)

Affiliate links — we may earn a commission at no extra cost to you.

About Manzari

Manzari is an independent publisher focused on WordPress, website technology, business software, and practical tech guides. Our goal is to help you choose better tools and make informed decisions with honest, transparent recommendations.

57+
In-depth WordPress guides
23+
Real tools tested & reviewed
21yr
Building with WordPress
100%
No paid placements, ever