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 !
Written by baptiste
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#