美文网首页
Rmote + VSCode 修改远程服务器文件

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

作者: binyu1231 | 来源:发表于2018-05-03 11:07 被阅读322次

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]
  • 这里的端口改不了,好像写死在 shell 脚本里了
  • windows 可以使用 Cmder 代替终端

远程服务器

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

$ touch ~/foo.txt
$ rmate ~/foo.txt

相关文章

网友评论

      本文标题:Rmote + VSCode 修改远程服务器文件

      本文链接:https://www.haomeiwen.com/subject/jyecrftx.html