I'd like to mount a remote directory through sshfs
on my Debian machine, say at /work
. So I added my user to fuse
group and I run:
sshfs [email protected]:/remote/dir /work
and everything works fine. However it would be very nice to have the directory mounted on boot. So I tried the /etc/fstab
entry given below:
sshfs#[email protected]:/remote/dir /work fuse user,_netdev,reconnect,uid=1000,gid=1000,idmap=user 0 0
sshfs
asks for password and mounts almost correctly. Almost because my regular user
has no access to the mounted directory and when I run ls -la /
, I get:
d????????? ? ? ? ? ? work
How can I get it with right permissions trough fstab?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With