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.


Hi, Attached screenshots. I hope I’m doing it all right. It also shows var when I type ls.

Hey there,

Wow, sounds like an odd problem. Is there a specific error message you’re encountering? Is there anything in your logs indicating a cause to the issue? The more precise information you give us, the better we can help. Screenshots, videos, or step by step walkthroughs of an issue really help!

I would also suggest opening a support ticket. The support team might be able to help further with some more info.


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

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.

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