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 https://raw.github.com/aurora/rmate/master/rmate --no-check-certificate sudo chmod a+x /usr/sbin/rmate
For standard SSH:
ssh -R 52698:localhost:52698 firstname.lastname@example.org
Or put the following lines in your local ~/.ssh/config:
Host example.com # rmate port tunneling RemoteForward 52698 127.0.0.1:52698