Editing remote files locally in OSx
A quick guide to how you can edit remote files locally in OSx
Sometimes we spend so much time with our local text editor that when we need to jump onto the server to edit files (apache config files, for example) we have to stumble around with VIM or Emacs (I should state, both are fine editors — all I am saying is if it isn't what you use day in day out they will not feel as comfortable as what you use).
Luckily if you use OSx there is a way you can map your remote server to allow you to edit files locally and have the changes saved automatically on the remote machine, and setting it up is really straight forward.
The first thing you will want is to set up SSH key authentication — I will not cover that here but if you have your machine talking to Github then you already have your public key so add it onto the list of allowed keys on the remote machine, google will help.
Next you want to install FUSE this is a package that once installed allows you access to a terminal command that we will use to set up the pairing.
Once installed run the following in terminal;
mkdir ~/my_server
sshfs username@my_server.com:/directory/i/want/to/map ~/my_server
Which should create the mapping.
Right now I don't see a way of viewing this folder inside of finder (if you know, please contact me!) but you should now be able to access your server by going to ~/my_server on your local machine, then running something like open . to open the folders up in finder.