On 22/06/2022 09:59, Mark Rogers wrote:
What's the best way to edit files on remote servers over SSH?
Using a text editor directly over SSH is fine, but a GUI editor like VSCode is easier to work with. But I never have much luck getting SSH/SFTP plugins to work reliably, so I wondered what other people do.
Preferably cross-platform as I have to switch between platforms a lot.
I wouldn't do this over the internet, but Inside my network, I have enabled X forwarding on one machine. I can then use
ssh -X user@remotemachine
and once I get a console up, I can run a graphical program, e.g. Pluma text editor. The program runs on the remote machine, but the display is drawn on the local machine. It works fine for me on simple things like graphical file editing. I use xubuntu and lubuntu, not Ubuntu. I gather that some OSes have moved away from using X, so I don't know if this would work for everyone.
Hope that helps. It's simple to enable and use.
Steve