Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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


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.