After root password reset all files are gone from VPS when logged in from the console.

July 13, 2017 740 views
DigitalOcean Ubuntu 16.04

I just reseted my root password from the droplet UI and then when I reconnected to the droplet from my local console with ssh root@........ I don’t see any files in there with the ‘ls’ command. However, when I connect with FileZilla to the same address I get to see the files.
What is going on?

1 Answer

Hi @spparvanov

You are either not using the same login. Or the directory path is different. Or you are not connecting to the same server.

Usually FileZilla saves the path from the last login, so when you login again you might be located in /var/www/html/ whereas when you login with SSH it defaults to the users home directory (which is /root in your case).
Make sure you’re in the same directory path.

Have another answer? Share your knowledge.