FTP Password (not private key-value pair) for EC2 Instance


I am using AWS EC2 instance and I can connect to it using username and key-value pair (file). But I'd need to connect (over Wordpress) to the server and it's asking me to enter a password.

How and where can I find the password which I can type in? (The only password, or better said private key, I am familiar with is in the .pem file)

Here is the screenshot: https://prnt.sc/gAdr9Y0DSaJb


1 Answer

If you have configured your EC2 instance to allow SSH access using a key pair, then there is no password that you can use to log in directly. In this case, the password prompt that you are seeing is most likely for connecting to the MySQL database server that is running on your EC2 instance.

To find the password for connecting to the MySQL server, you will need to check the configuration files for your WordPress installation. The password is typically stored in the wp-config.php file, which is located in the root directory of your WordPress installation.

if you have access to the MySQL database server on your EC2 instance, you can use a tool such as phpMyAdmin to view and modify the database directly. To access phpMyAdmin, you will need to install it on your EC2 instance and configure it to allow remote access. Once you have done this, you can use a web browser to connect to phpMyAdmin and log in using the MySQL username and password that are stored in the wp-config.php file. From there, you can view and modify the contents of your WordPress database.

answered 19 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions