Lost ftp Username and Password how to recover or reset

Posted September 12, 2015 17.6k views
CentOSLAMP Stack

How do I reset my ftp password and username as I lost my password and username in my old drive. pls pls

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

Did you lost your FTP password or you SSH / SFTP password?
If its only FTP, connect to your droplet and edit your FTP service config with a new password. If its SSH / SFTP just login to your droplet in the DO browser and reset the root password at your droplet settings.

  • only my FTP password i can connect to my ssh… when i try to view my username and password in cat /etc/passwd it does not contain username and password :( how to i edit my ftp config?

    • Well, if you are still able to login with SSH. You need to edit the config, wich is different for each other service. So I don’t know what kind of setup your using, so can’t help you with that without any information about your droplet.

I have changed the Login Username & Password of Digital Ocean, and now I want to change the FTP Login Password of my website in Digital Ocean, so that the Agency can not access the database at all.
Please help me with the steps to change the FTP root Password.
If I go by Reset Root Password, then DO will send the password on its own, and I wont be able to change it.

I solved creating a new user

sudo adduser

I answer some displayed questions and finally set a password.
Then, I tried to connect ftp and ssh:

ssh newuser@myhost


ftp myhost
ftp> user newuser

Prompt asked me password and everything ok.

I point projects to the new user. You don’t need to move files, just point the newuser to those places and eventually, remove old user if not necessary anymore.