How can i go in my web directory /var/ww/html connecting Sftp ?
My Problem is that after installing a plugin in my moodle my site get crashed. I am new to linode. So i am unable to go in my web directory
I have read this 2 post:
1) https://www.linode.com/docs/tools-reference/file-transfer/filezilla/
2) https://www.linode.com/docs/networking/ssh/ssh-connections-using-putty-on-windows/
To connect using putty s/w using sftp connection but it send me to /root/ directory. I am not come in my web directory. Please help in this situation i am new to linode. does I have to create a new user for this kindly give me step by step instruction to figure it out. Please help anyone !!!
3 Replies
Hey @ejacobi!
The good news is, since you're accessing the root/home directory, you should have permissions to access the directory you're looking for.
Everything in Linux is either a file or a directory. The trick is to find what directory that file may be in. By starting in the root/home directory, you'll need to go up a couple directories before being able to navigate to the directory you're looking for.
First, you'll need to go up one level.
Where you're starting
/
∟/home/
Going up one directory higher, you'll be in
/
From this directory, you'll be able to access /var, which will direct you to the directory you're looking for:
/
∟/var/
∟/var/www/
∟/var/www/html
You should note that this is a common directory structure. Yours may vary, but but only if you've set things up differently.
If you prefer to navigate through the directories via the command line, we have a great doc on Introduction to Linux Concepts, specifically the section Finding Your Way Around Files and Folders.
Regards,
Pat Woods
Linode Support Team
Hey @watrick,
Please guide me how can i connect using sftp to directory /var/www/html because using the post:
1) https://www.linode.com/docs/tools-reference/file-transfer/filezilla/
2) https://www.linode.com/docs/networking/ssh/ssh-connections-using-putty-on-windows/
i am connected to (root/) directory as root user. I think there is difference between the root of the web server and the file system root.
Did i mistake in this topic here ? How can i go to file system root (var/www/html) using sftp to edit file ?
Hi again @ejacobi,
The directory structure is the same regardless of how you're accessing it.
SFTP is one protocol (the one you're currently using), while using SSH to access the Linode via the command line utilizes a different protocol, TCP.
While these are the technical terms, you can also think of it like taking a bus or a train to a transportation terminal. Both vehicles are arriving at the same location, just taking different means to get there.
I'm sorry I didn't make this more clear in my original response. I hope this clears it up for you.
Regards,
Pat Woods
Linode Support Team