Install the rsub plugin for ST2/ST3, which is available through Package Control too.
Add a remote forwarding line under the right host in your
~/.ssh/configfile to enable connection:
Host myfancyvps Hostname 22.214.171.124 RemoteForward 52698 127.0.0.1:52698
SSH in to your remote:
curl https://raw.github.com/aurora/rmate/master/rmate > rmate
Move it in place:
sudo mv rmate /usr/local/bin– you can put in ~/bin too if you only want to set it up for yourself, but sharing is caring :)
Make it executable:
sudo chmod +x /usr/local/bin/rmate
rmate .profile– make sure you have an open ST2/ST3 window to enable listening!