-
Install Atom on your computer (https://atom.io)
-
Launch Atom, go in Preferences, then chose Install, search for "remote-atom", and install it
-
On the distant machine:
cd ~ wget https://raw.githubusercontent.com/aurora/rmate/master/rmate chmod +x rmate
- Launch Atom on your computer
- Go in Packages > Remote Atom > Start Server
- ssh to the distant machine and add the option
-R 52698:localhost:52698
(for example for me it is:ssh -R 52698:localhost:52698 ntag@ntag.fr
) - On the distant machine, just do
~/rmate /path/to/my/file/i/want/to/open
to open it on Atom on your computer :-)