Going to web root using SFTP

2

I have a personal dev box which has SSH running on it. I am using it as web development server. Although I can SSH, SCP and SFTP into it, using SFTP but it takes me to the user home directory. How do I go to the web root using SFTP? I believe I might have to expose the /var/www/ in order to do that? How do I do that?

sabertooth

Posted 2010-08-06T17:23:31.423

Reputation: 487

Answers

2

If you're using a dedicated account to perform work on the development server you can set that user's home to /var/www

usermod -d /var/www username

bryan

Posted 2010-08-06T17:23:31.423

Reputation: 7 848