Mount a filesystem over SSH on OSX (sshfs)

1) Download & install FUSE for OSX.

2) Create an empty local folder to act as a mount point.

3) Mount the filesystem over SSH.

Syntax:

sshfs <username>@<IP or URL>:<remote path> <path to local mount point>

Example:

sshfs bilbo@theshire.com:/var/www/bagend ~/Desktop/mnt

I’m not a huge fan of using Vim or Nano/Pico for lengthy editing sessions on remote servers. This allows me to use Sublime Text (or whatever your editor of choice). I’ve not encountered any latency issues and it’s much smoother than forwarding X (which I never have installed on a webserver anyway).

 

This entry was posted in Code, Linux, OS X, Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *