open files on remote with sublime by ssh

I am still suck at vim or emacs. I use nano to edit files on remote machines. But for more complicated editing, I prefer to use sublime.

use this for editing remote files.


on remote machine, install rmate

ssh bio1
curl -o ~/bin/rmate

chmod u+x bin/rmate

on your local computer, install RemoteSubl

on your local computer, open sublime, click tools –> Command Palette –> type Package control:Install Package –> type RemoteSubl to install.

change your ssh config file

add RemoteForward 52698 localhost:52698 to your ~/.ssh/config file.

Now, ssh to remote, and you can do rmate my.txt in your remote and open sublime in your local machine.


comments powered by Disqus