Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

On Ubuntu server 12.04 I can run the following command to mount a remote directory:

sshfs root@ /home/danny/nurserotas/

I am then prompted for the password for the remote server (

How could I run the above command, including the password entry, whenever the server boots?

share|improve this question

You can do this by editing /etc/fstab

This thread should be helpful:

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.