Remote Editing with rmate

rmate utility was originally created on Mac OS X by TextMate editor. It allows user to edit file on remote system over SSH protocol. Today we can see find multiple implementations of rmate using different languages. Many editors support this protocol including Visual Studio Code and Sublime.

I prefer shell based implementation, because it does not have additional dependencies.

Original GitHub instructions.

To install shell version:

wget -O /usr/sbin/rmate --no-check-certificate
sudo chmod a+x /usr/sbin/rmate

For standard SSH:

ssh -R 52698:localhost:52698

Or put the following lines in your local ~/.ssh/config:

    # rmate port tunneling
    RemoteForward 52698