Mount sshfs in container using fstab

Dec 6, 2021
8
0
6
40
Hi,

I am trying to mount a remote filesystem in a container. Doing it manually using the cmd
Code:
sudo sshfs -o allow_other,default_permissions,IdentityFile=/home/admin/id_ed25519 -p 2222 user@remote.com:/home/user /home/admin/remote
works fine. But when I try to do the same using /etc/fstab with following entry I can't get it working
Code:
user@remote:/home/user /home/admin/remote fuse.sshfs rw,noauto,port=2222,_netdev,allow_other,default_permissions,uid=1000,gid=1000,users,IdentityFile=/home/admin/id_ed25519 0 0

Some help or information, if this is even possible, would be greatly appreciated. Thanks!
 
I don't see any error with your statement to be honest but you can test whether the configuration is correct by running mount -a, which tries to mount all entries not yet mounted and usually tells you a bit more what the problem is.