Skip to content

Instantly share code, notes, and snippets.

@trepmal
Created May 5, 2014 03:00
Show Gist options
  • Save trepmal/6d96b9fdff19db891ef9 to your computer and use it in GitHub Desktop.
Save trepmal/6d96b9fdff19db891ef9 to your computer and use it in GitHub Desktop.
using sublime text to edit files over ssh

install 'rsub' sublime package

run on remote server:

# may want to edit /usr/local/bin to suit your PATH
sudo wget -O /usr/local/bin/subl https://raw.github.com/aurora/rmate/master/rmate --no-check-certificate; sudo chmod +x /usr/local/bin/subl

run on local server

ssh -R 52698:localhost:52698 username@re.mo.te.ip
# e.g. ssh -R 52698:localhost:52698 root@192.168.33.11

Tested and working on OS X Mavericks with Sublime Text 3 using a Vagrant instance as the remote server .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment