不清楚 Vi,但 Emacs 是可以的,工作流大概向这样:
- Terminal.app (或任意的终端模拟器)SSH 登录远程服务器;
- 登录之后,建立反向隧道 (reverse ssh tunnel)登录本地电脑;
- 发送命令给本地主机,打开远程文件,如:
ssh localhost "emacs /ssh:remotehost:/etc/apache2/"
C-f 是运行的是什么命令?你的意思是 C-x C-f (find-file
)?
不清楚 Vi,但 Emacs 是可以的,工作流大概向这样:
ssh localhost "emacs /ssh:remotehost:/etc/apache2/"
C-f 是运行的是什么命令?你的意思是 C-x C-f (find-file
)?