Mount sshfs in container using fstab

Dec 6, 2021
8
0
1
39
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!