-
Notifications
You must be signed in to change notification settings - Fork 6
sshfs mount
roubles edited this page Jul 23, 2015
·
3 revisions
To mount ssh shares, I use https://osxfuse.github.io/ that installs sshfs for you.
MOUNT_CMD=/usr/local/bin/sshfs roubles@example.com:/someremotefolder /Users/roubles/somelocalfolder/ -oauto_cache,reconnect,volname=example
In context this looks like:
[example.com]
MOUNT_TEST_CMD=ls -l /Users/roubles/somelocalfolder/ && /sbin/mount | grep -q "sshfs/somelocalfolder"
PING_CMD=/sbin/ping -q -c3 -o example.com
PRE_MOUNT_CMD=/sbin/umount -f /Users/roubles/somelocalfolder/; /bin/mkdir -p /Users/roubles/somelocalfolder/
MOUNT_CMD=/usr/local/bin/sshfs roubles@example.com:/someremotefolder /Users/roubles/somelocalfolder/ -oauto_cache,reconnect,volname=example
Note that in this case we are using ssh passwordless logins.