This gist requires autofs and sshfs be installed on your system. You must have ssh access to each host you would like to automount via a passwordless ssh key.
The script currently expects a the key to be named $HOME/.ssh/id_ed25519
but you can change it if you like.
Make sure the following line is in your /etc/auto.master it will source the files in /etc/auto.master.d/
# /etc/auto.master
+dir:/etc/auto.master.d
You will also need to install the following files. The auto.sshfs script must be executable! (it executes and then feeds it's output to the automount command)
trigger to the automount of the remote host by going to /net/sshfs/username@hostname