Quote:
Originariamente inviato da sacarde
dovrebbe usare l'user dall'fstab:
Codice:
sshfs#user@server_ip:/path/to/mount /mnt/server_folder
per i log: journalctl -b
|
+ cat /etc/fstab| grep /mnt/public-on-demand-sshfs
sshfs#gnomix@nas:/public /mnt/public-on-demand-sshfs fuse.sshfs noauto,ro,users,exec,IdentityFile=/home/gnomix/.ssh/id_rsa,x-systemd.automount,_netdev,users,uid=1000,gid=1000,idmap=user,allow_other,default_permissions,reconnect 0 0
+ sudo systemctl daemon-reload
+ systemctl list-unit-files --type automount
UNIT FILE STATE VENDOR PRESET
mnt-public\x2don\x2ddemand\x2dcifs.automount generated enabled
mnt-public\x2don\x2ddemand\x2dsshfs.automount generated enabled
proc-sys-fs-binfmt_misc.automount static enabled
3 unit files listed.
+ sudo systemctl restart 'mnt-public\x2don\x2ddemand\x2dsshfs.automount'
+ sudo systemctl restart remote-fs.target
+ sudo systemctl restart local-fs.target
+ ls /mnt/public-on-demand-sshfs
ls: impossibile aprire la directory '/mnt/public-on-demand-sshfs': Nessun device corrisponde