Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am beginner for SSH stuff but i want to dump a big sql file and for that i need to be able to navigate to the appropriate path in my hosting account. I managed to login to SSH and i typed pwdbut it gave me a shared hosting pathway like /home/content/r/o/s/roshanjonah

How Can i go to the path where i upload my files to...i use FTP but in FTP path it just shows / so i cannot go any further back than that...so using SSH how can i come to this path in ftp...

Thanks

Roshan

share|improve this question
    
Try using scp, perhaps. –  WhirlWind May 7 '10 at 2:10
    
This isn't a programming question, is it? I think you're going to get nicer answer than mine on superuser.com –  WilhelmTell of Purple-Magenta May 7 '10 at 2:12
add comment

migrated from stackoverflow.com May 7 '10 at 3:14

This question came from our site for professional and enthusiast programmers.

3 Answers

FTP's root is not the actual root directory of the system, but one that is designated as that root. SSH's root directory, by default is the actual root. For instance, on a web host that I use my home direcotry is /home/username, but my FTP's root directory is /home/username/public_ftp.

There is a very good chance that your FTP root is under your home directory someplace an you could use the find command to find it. Upload a file with a unique name and use "find /home/yourusername -name uniquefilename.txt" and see what you find. If you don't find it there, all of the FTP data may be some other place. You can ask your hosting provider if you get stuck.

share|improve this answer
    
+1. And a general point: if it is not under your home directory, it should still be one that has rwx access for you. You can find these directories using find as well. –  Charles Stewart May 7 '10 at 12:30
add comment

Your FTP connection and your SSH connection are completely different. Depending on how the FTP is configured, you may or may not land in the same place as your FTP. Try uploading a file via FTP and see if you see it in the same directory as your SSH connection lands you in. If not, can you list the directory? See if you can navigate around on SSH and find those files you see in your FTP session.

Otherwise, it wouldn't hurt to just ask your hosting provider and/or read the FAQ.

share|improve this answer
1  
+1, Ask your hosting provider, it's probably in the FAQ too. Also, the ftp / is probably your home directory /home/content/r/o/s/roshanjonah too. –  Chris S May 7 '10 at 3:49
add comment

Try using the ls command (assuming this is anot a windows server). You will likely see htdocs or www or the name of your domain you can then use athe cd command like this to enter that directory, like this cd domainname.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.