Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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
share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.