http://www.tjansson.dk/2008/01/autofs-a ... ct-couple/
https://www.digitalocean.com/community/ ... s-over-ssh
However I think the autofs instructions might be a bit dated because some options listed are not valid today.
I've gotten sshfs to connect and it seems like it works how I hoped it would work with:
Code: Select all
sshfs -o allow_other,default_permissions,uid=1000,gid=1000,IdentityFile=/home/sovereign/.ssh/remote remoter@192.168.1.100: /home/sovereign/remoter/
auto.master
Code: Select all
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
#
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/home/sovereign/.remotefiles/ /etc/auto.sshfs
Code: Select all
remoter allow_other,default_permissions,uid=1000,gid=1000,IdentityFile=/home/sovereign/.ssh/remoter :sshfs\#remoter@192.168.1.100\: