Fstab with sshfs

From Flo's Knowledge in a Nutshell

Jump to: navigation, search

Howto automount ssh filesystem:

/etc/fstab (Clientside)

sshfs#user@server:/home/user /mnt/mountpoint fuse rw,allow_other,uid=1000,user,auto 0 0

/etc/rc.local (Clientside)

We need to remount the devices because network was not ready when fstab was loaded. The sleep value can be decreased if it still works.. Try yourself.

sleep 20
mount -a

Mount Issue Ubuntu <= 8.10

root@florianeberle:~# df -h
chdebfl0@u0160:/home/chdebfl0/public_html
0.0K -0.0K  0.0K 247% /home/flo/mount/devsrv
root@florianeberle:~# df -h
chdebfl0@u0160:/home/chdebfl0/public_html
131G   53G   78G  41% /home/flo/mount/devsrv
Personal tools