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@192.168.1.1:/w/common/Rotas/Nurses /home/danny/nurserotas/

I am then prompted for the password for the remote server (192.168.1.1).

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: http://ubuntuforums.org/showthread.php?t=1173714

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.