Question

Can't access my site through sftp connection

Hi, I installed the server as in the tutorial and it loads and seems like in the tutorial screenshots but when I try to transfer files through the sftp connection I can’t access any of the files through my IP address. For some reason I don’t have /var/www folder in my server.

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.

Hey there,

It looks like you are confusing /root/var/www/html with /var/www/html from what I see in your root_001.png screenshot. It can be confusing as “/” is known as the root of the drive, and “/root” is the home folder for the root user account.

You want to try to back out of /root (which is what you log into by default) and find /var. Usually there is a ‘double dot’ at the top of folder listing that if double clicked would move you up a folder. Most FTP programs show it like that. You may also want to try out FileZilla instead as it may be easier to navigate with.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean