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.
On Wed, 22 Jun 2022 at 10:00, Mark Rogers mark@more-solutions.co.uk wrote:
What's the best way to edit files on remote servers over SSH?
VSCode works fine - it's pretty easy to set up and use. I use it a lot when I'm running labs.
22 Jun 2022 10:42:01 Ewan Slater ewan.slater@gmail.com:
VSCode works fine - it's pretty easy to set up and use. I use it a lot when I'm running labs.
Which plugin do you use?
I know there's one (Microsoft's?) which installs a load of stuff on the remote server, which isn't ideal (sometimes I'm working on devices with very limited disk capacity), and I've tried at least one other option in the past but found I'm fighting against it more than it actually helping me, although conveniently I can't now recall which that was!
Mark
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