Report this

What is the reason for this report?

Can't access my site through sftp connection

Posted on January 20, 2016

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.



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!

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.