Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shivanshthapliyal/04fb76bea6cf8cea02ef55e15f40fb81 to your computer and use it in GitHub Desktop.
Save shivanshthapliyal/04fb76bea6cf8cea02ef55e15f40fb81 to your computer and use it in GitHub Desktop.
Editing Files Remotely via SSH on SublimeText 3

Editing Files Remotely via SSH on SublimeText 3

  • On local workstation: On Sublime Text 3, open Package Manager (Ctrl-Shift-P on Linux/Win, Cmd-Shift-P on Mac, Install Package), and search for rsub

  • On local workstation: Add RemoteForward 52698 127.0.0.1:52698 to your .ssh/config file, or

    ssh -R 52698:localhost:52698 user@host
    
  • On remote server:

    sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate
    sudo chmod a+x /usr/local/bin/rsub
    
  • Just keep ST3 editor open,

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