How to edit a file on a remote linux machine in your local Sublime Text editor. Thanks to @josiahcoad for inspiring me to post this. BOO YAH
-
Install "RemoteSubl" Sublime Text Plugin
-
On the remote host, install "rsub"
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
sudo chmod a+x /usr/local/bin/rsub
- Remote into remote host forwarding port to local host
ssh user@host -R 52698:localhost:52698
or edit your~/.ssh/config
and add a line:
RemoteForward 52698 localhost:52698
Now you can edit files on the remote host w your local editor! Like...
rsub hello
cat hello
Also see: Noah Coad's Gist Index