How do I provide temporary access to SFTP/phpMyAdmin on AWS Lightsail LAMP Stack?

I want to provide temporary access to SFTP and phpMyAdmin on my AWS Lightsail Bitnami LAMP stack install.

Not sure how to do this as I have my SSH setup on my computer however if I give them all the keys then they have access to the server forever.

Any suggestions?

I don’t mind reading documentation however I couldn’t find how to do this.

I need to give 2 companies temporary access so they can do technical support on my site.

Thank you for your time, knowledge and assistance.

Hi @ghumphrey,

Thank you for using Bitnami. I’m going to explain the steps that you need to perform to achieve this but please note that you need to be careful when following them as you can lose access to the instance. We are going to follow this section to give access to him

First of all, you will need to create new keys for that new user:

Once created, you will need to modify the users that can access the server using the bitnami account.

This is an important step, if you modify the that file and set wrong keys, you’ll lose access to the instance, that’s why the documentation explains the backup process.

After modifying the file, the new user can access the server using the bitnami account.

In order to access phpMyAdmin, he’ll need to follow this documentation:

In case you want to remove his keys from the list with the keys that have permissions to access the server, just remove his key from the file or recover the backup file that you created in the second step.

Do not hesitate to write us back in case you have any questions.


Thank you! That was exactly what I was looking for and was able to implement. Thanks again for your time, knowledge and assistance!


We are glad that you were able to fix the issue. We are marking the previous answer as “Solution” and this topic as “Solved”.
If you have any other questions, please do not hesitate to let us know. Feel free to create a new topic referencing to this one if necessary.

Best regards,
Carlos R. Hernández

Hi all - Just wanted to let you know that we’ve now updated our documentation to include this information. You can see the revised documentation at