Skip to content

Instantly share code, notes, and snippets.

@tomdaley92
Last active July 19, 2021 11:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomdaley92/dd47cc1c26c58b2d2e5cf6ec56a2c4c7 to your computer and use it in GitHub Desktop.
Save tomdaley92/dd47cc1c26c58b2d2e5cf6ec56a2c4c7 to your computer and use it in GitHub Desktop.
Installing and configuring rsub for editing files with sublime through ssh
  1. Install rmate on the remote server
sudo wget -O /usr/local/bin/rsub https://raw.github.com/aurora/rmate/master/rmate && sudo chmod a+rx /usr/local/bin/rsub
  1. Modify your ~/.ssh/config file on your local machine
Host *
  RemoteForward 52698 127.0.0.1:52698
  1. Install rsub package to Sublime Text 3 on your local machine

  2. SSH into remote machine, type rsub and then a filename to edit the file on your local machine with Sublime Text 3.

@tomdaley92
Copy link
Author

tomdaley92 commented Apr 5, 2018

For Windows w/PuTTY follow this guide

@tomdaley92
Copy link
Author

For debugging connections, this command can be useful:

sudo netstat -tp

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