Once this is done you can access the code in ~/remote_code w/ any of your GUI tools and without the bandwidth overhead of using ssh -X (however you still need a good connection w/ a low ping time).
我不能100% 确定这是否适用于 root 用户所拥有的文件,但是如果你的桌面是 KDE,你的远程系统是 Linux (或者几乎任何形式的 * nix) ,你可以让 konqueror 使用“ fish://”协议访问远程机器。从那里,您可以使用 Kate 或您首选的编辑器从 konqueror 打开文件,Konqueror 将负责将文件复制到您的本地计算机,并在您保存时将其复制回来。
Failing which the X11 forward is a good option, but X11 over ssh to remote sites can be slow. "ssh -X -C" compresses the data stream and can give better performance.
As soon as you connect to your remote server using SSH, you will see your remote files displayed in this graphical SFTP browser. Just double-click on your files and you will be able to edit them directly on your remote server through SFTP.
Recent versions of ultraedit do exactly what the OP is asking for elegantly (IDM software, v10 and up support SSH iirc). I do most of my coding remotely like that, been using it for years, works great with no intermediate files etc. Obviously it also does FTP etc too if you're so inclined.
如果您更加面向 GUI,并且使用对新手更友好的 Linux 发行版,如 Ubuntu或 薄荷糖,那么这是另一种选择,并且不需要更多的安装。
You should have 尼莫 as your default file manager. It may not be called "Nemo" on the menu, so go under Help > About of your file manager ("Files" app) to see.