4 hours ago
For mounting sshfs I have a shell script:
#!/bin/bash sshfs -o allow_other user@ip-address:/remote/path /local path
If I run the script after I boot up the server, it will mount, but it won't mount drives if I add the script to run at boot with /etc/rc.local or crontab using @reboot command. I also tried to add sshfs lines to /etc/fstab, but that fails too.
/etc/rc.local
/etc/fstab
I tried to add this to /etc/fstab
sshfs#user@remote:/path /local/path
then server won't boot up