Forgot Your WordPress Username & Password? Reset via SSH (Works on Any Host)
- Published
- Feb 16, 2026
- Duration
- 4:15
Video description
Forgot your WordPress username and password and locked out of your site? In this tutorial, I show you how to reset your WordPress admin credentials using SSH and WP-CLI. Although I’m demonstrating this on AWS Lightsail, this method works on any hosting provider where you have SSH access to your WordPress installation. If you can access your server via SSH, simply navigate to your WordPress directory and follow the same steps shown in this video. The exact commands used in this tutorial are available here: 👉 https://manzari.com/wordpress-tutorials/reset-wordpress-admin-password-via-ssh/ This method is especially useful when: • You can’t access wp-admin • The email reset option isn’t working • SMTP isn’t configured • You’ve lost both your username and password Hope this helps! — Manzari