3 ms·
I just run my editor locally on my personal machine, and have it access all the files on the remote machine via SSH. In Emacs, this is as easy as typing in a sl
by db48x 9y ago
I just run my editor locally on my personal machine, and have it access all the files on the remote machine via SSH. In Emacs, this is as easy as typing in a slightly longer filename: /remotehost:path/to/file.cpp. Everything else about the editing session is the same as it would be if the file were local. The compile command operates in the remote directory, debugging operates out of the remote directory, all as you would expect.
Just make sure you configure your local machine so that all ssh commections to the remote machine use key-based authentication, so that Emacs doesn't have to prompt you for a password when it connects. SSH can also share connections between ssh processes, which speeds everything up. In the ssh_config documentation look for the ControlMaster option for how to set it up.
The advantage of this setup is that your editor stays on your local machine where your keyboard is correctly configured, but your work is all on the remote machine as desired. I'm sure other editors can be configured similarly.