Editing remote files over SSH, using TextMate?

Zack Burt picture Zack Burt · Apr 8, 2010 · Viewed 39.1k times · Source

I LOVE using TextMate on my MacBook. It's great.

Unfortunately, I want to edit some files directly on my dev server, since it's difficult to recreate the environment locally. I'm using Git, so one alternative is to just edit locally, git commit, git push, and then git merge, but that's kind of complicated every time I want to make a simple change.

I'd rather just ... use another solution. One thing I tried is mounting a hard drive via MacFusion, and then loading that in an editor. But that's so freaking laggy/slow!

Has anyone cooked up a better solution?

Answer

Kim Sharma picture Kim Sharma · Sep 5, 2012

OK - here is the one that works on Mountain Lion.

  1. Go to http://osxfuse.github.com/
  2. Install FUSE for OS X
  3. Install SSHFS for OS X
  4. Then the following commands on your terminal:

mkdir /Volumes/SSHFS

/usr/local/bin/sshfs username@host:/path/to/dir /Volumes/SSHFS

Done.

I would also recommend using the ReMate plugin as pointed out by another user to prevent TextMate from beach-balling every time you refocus it. Link:

ReMate http://ciaranwal.sh/remate