Rmote + VSCode 修改远程服务器文件

2018-05-03  本文已影响322人  binyu1231

Note:不能打开文件夹

foo/ is a directory and rmate is unable to handle directories.

参考

本机

  1. vscode 安装 Remote VSCode 插件
  2. 安装完后 command + p 输入 > remote 点击 Remote Start Server
  3. 打开终端执行 ssh -R 52698:localhost:52698 [远程主机用户]@[远程主机IP]

远程服务器

$ wget https://raw.githubusercontent.com/aurora/rmate/master/rmate
$ chmod +x ./rmate
$ mv ./rmate /usr/local/bin/

$ touch ~/foo.txt
$ rmate ~/foo.txt
上一篇 下一篇

猜你喜欢

热点阅读