Easy handling of multiple sshfs mounts
Depends on sshfs. Brew install it!
-
Create directory
~/.ezsshfs
(this is where your mount profiles will go) -
Add a new profile to the directory. Example:
# ~/.ezsshfs/example-profile
# leverage your ssh-config to do any special magic you need there
host="myhostname"
# What directory on the remote machine to mount to
host_dir="/"
# Local directory where the mount reside
local_dir="/Volumes/RemoteHost"
- Add
ezsshfs
to your $PATH
Mount a SSHFS profile:
$ ezsshfs example-profile start
Unmount:
$ ezsshfs example-profile stop