操作

安装扩展

remote-vscode

配置ssh 转发:

添加 RemoteForward 52698 127.0.0.1:52698 到 ~/.ssh/config:

# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
# Host localu1
# HostName 128.196.126.142
# User xxxx
# IdentityFile ~/.ssh/id_rsa.pub # Host textlalel
# HostName 192.168.1.149
# User xxxx
# IdentityFile ~/.ssh/id_rsa.pub Host myRemoteServerName
HostName 12.34.567.89
User root
ForwardAgent yes
RemoteForward 52698 127.0.0.1:52698

连接远程

ssh -v myRemoteServerName

在被控制端操作(已经登录):

安装rmate

wget -O /usr/local/bin/rcode https://raw.github.com/aurora/rmate/master/rmate &&chmod a+x /usr/local/bin/rcode

操作某个文件:

#重新登陆远程, 运行
rmate some_file.php

文件出现在vscode

其他方式

使用ssh:已经测试

https://blog.csdn.net/qq756684177/article/details/94236990

https://github.com/cdr/code-server/releases

最新文章

  1. Yii Model中添加默认搜索条件
  2. Dialog with HTML skin using CDHtmlDialog and SetWindowRgn
  3. PHP - 直接输出对象的版本问题
  4. Java 建立mysql数据库连接的语句
  5. Quartz使用-入门使用
  6. Android更新主线程UI的两种方式handler与runOnUiThread()
  7. Filter中排除对指定URL的过滤
  8. linux rsync 实际应用
  9. Elasticsearch单机双节点集群部署实战
  10. ubuntu18.04安装mongoDB
  11. FPGA笔试题集锦(血的教训)
  12. Python基础教程(第3版) 笔记(二)
  13. IOC容器特性注入第二篇:初始引擎查找对应的IOC容器
  14. STL相关问题
  15. default activity not found的问题
  16. js调用打印机打印
  17. Maximum Average Subarray I LT643
  18. 转:iOS-生成Bundle包-引入bundle-使用bundle
  19. input同名
  20. 用Anaconda安装TensorFlow+keras

热门文章

  1. redis集群(多机)分布
  2. docker使用的一些需要注意事项
  3. Spring Boot Redis 集成 Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer'
  4. Cache的一些总结
  5. Windows编程 Windows程序的生与死(中)
  6. IOS开发copy,nonatomic, retain,weak,strong用法
  7. SQL将多行数据合并成一行【转】
  8. vue学习(10)-vue-resource
  9. go语言入门(6)复合类型
  10. JavaSpring【七、AspectJ】