rmate
probably won't do much more than provide a nice abstraction to the same basic process:
- download the file
- write a copy somewhere on your local machine
- edit it
- write it
- upload the file to the remote machine
But I might be wrong.
Many editors/IDE can actually edit code remotely but they all follow the process outlined above, AFAIK. The only tool that I've heard of that allows you to launch a local editor from a remote machine is bcvi
. I don't know how it works, though, and it's Vim-specific, obviously. Maybe it's the inspiration behind rmate
? Or not?
I think that you have overlooked a nice feature of modern (S)FTP clients: many of them offer the ability to "Edit with…" your chosen text editor. It's not exactly what you are after but it sure is handy.
Another option is to edit your files directly on the remote machine. Vim and Emacs work perfectly well through SSH. Expect a steap (but rewarding) learning curve. If you often need to edit configuration files Vim has its place in any sysadmin's toolbelt.
If what you actually want to do is work on deployed production code, there are better and safer ways: running your code on a local server, using some version control system…
Is there a solution if I don't have sudo on the remote server? – Herman Toothrot – 2018-11-16T09:37:03.653
it will work with or without sudo... but if you need to edit a file that requires sudo, you need sudo... – TiernanO – 2019-04-17T11:04:34.013
1
I wrote up a fairly detailed blog post how to get both remote and local bits set up: http://danieldemmel.me/blog/2012/09/02/setting-up-rmate-with-sublime-text-for-remote-file-editing-over-ssh/
– dain – 2013-08-15T22:05:01.547