Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer

You can do this by editing /etc/fstab

This thread should be helpful: http://ubuntuforums.org/showthread.php?t=1173714

share|improve this answer
add comment

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.