Skip to content

Instantly share code, notes, and snippets.

@petrbel
Last active October 8, 2017 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petrbel/01c0a71f1fbfa185f3e534c6ca4f856e to your computer and use it in GitHub Desktop.
Save petrbel/01c0a71f1fbfa185f3e534c6ca4f856e to your computer and use it in GitHub Desktop.
systemd automount
[Automount]
Where=/mnt/foo
[Install]
WantedBy=remote-fs.target
[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