Last Updated: February 25, 2016
·
7.901K
· croustibat

Mount remote dir in the OSX Finder using SSHFS and Homebrew

Here's a quick tricks to work with remote directory right in your Finder :

1.Install SSHFS via Homebrew (http://brew.sh/) :

$ brew install fuse4x
$ brew install sshfs

2.Copy/paste this script in remote_mount.sh file by example to mount your directories in the Finder :

#!/bin/bash

#reset mount
umount -f /Volumes/remoteDIR
mkdir -pv /Volumes/remoteDIR

#mount dir
sshfs [remote port] root@MY_SERVER_IP:/my/remote/dir/ /Volumes/remoteDIR -oauto_cache,reconnect,defer_permissions,noappledouble,negative_vncache,volname=remoteDIR

Check all the sshfs option with

$ man sshfs

3.Then just make file executeable :

$ chmod +x remote_mount.sh

4.Finally, mount your directory

$ ./remote_mount.sh

Open your Finder, check your in your device, your directory is here, you can open your files in SublimeText !