How do you edit files over SSH?

后端 未结 17 1691
没有蜡笔的小新
没有蜡笔的小新 2021-01-29 18:44

I program with eclipse and sometimes use GUI text editors like SciTE or vim. However, I\'m at a point in a project that requires me to edit files over a ssh connection in a 80 c

17条回答
  •  暖寄归人
    2021-01-29 19:19

    There are various options.

    You can make the terminal larger. ;)

    If you have a graphical environment installed on the machine you are ssh'ing into, you can login with ssh -X (or xdeep-putty if you are on Windows) to enable window forwarding. You can then run your favourite editor on the remote machine, whose graphical output is forwarded.

    Finally, you can mount the ssh connection into your file system, using for example fuse (similar options might exist for non-linux operating systems). That allows you to access any file on the remote machine as if it were in your filesystem, with your favourite editor, locally.

提交回复
热议问题