Last active
October 8, 2017 13:35
-
-
Save petrbel/01c0a71f1fbfa185f3e534c6ca4f856e to your computer and use it in GitHub Desktop.
systemd automount
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Automount] | |
Where=/mnt/foo | |
[Install] | |
WantedBy=remote-fs.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Mount] | |
What=<USER>@<SERVER>:<SERVER_DIR> | |
Where=/mnt/foo | |
Type=fuse.sshfs | |
Options=noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=<PATH_TO_SSH_KEY>,allow_other,reconnect,port=<SERVER_SSH_PORT> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment