Question

Can't access VPS via SFTP

Hi All,

I just installed CentOS and LAMP on my droplet following the getting started tutorial line by line. Unfortunately, I can’t seem to upload files via both SFTP clients, FileZilla and Cyberduck. I have tried a adding the public key which was created prior to the server setup, however, I still can’t upload anything.

I am not using the root account though.

Any ideas how to resolve this? Did I miss anything?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @josefarrugia:

I did a bit searching on the community forums and I have the following post: https://www.digitalocean.com/community/questions/ftp-open-for-write-permission-denied

I used the following code to give my super user permissions to write:

sudo usermod -a -G user apache
sudo setfacl -R -m u:user:rwx /var/www/html```

Hope this is secure!

View the original comment