Skip to content

Instantly share code, notes, and snippets.

@v1shwa
Last active July 10, 2017 14:36
Show Gist options
  • Save v1shwa/171e1f9befbb79db51a7655b49e6ce5d to your computer and use it in GitHub Desktop.
Save v1shwa/171e1f9befbb79db51a7655b49e6ce5d to your computer and use it in GitHub Desktop.
Editing Remote files with Sublime Text Raw

Client Setup

  • Add Remote Forwading by default for all hosts. Open ~/.ssh/config file and add these lines

    Host *
      RemoteForward 52698 127.0.0.1:52698
    
  • Open Sublime Text, Install rsub package using package control.

  • Done.

Remote Server Setup

  • SSH in to the server.
  • Run: curl -sSL https://git.io/vQPSM | bash
  • Done
#!/bin/bash
wget -O /tmp/subl https://raw.github.com/aurora/rmate/master/rmate
chmod +x /tmp/subl
echo "alias subl=\"/tmp/subl\"" >> ~/.bashrc
source ~/.bashrc
echo "Remote sublime setup is done. Now you can use: subl <filename>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment