什么鬼

不满足于外网使用vscode ssh remote进行命令行开发,甚至还想转发图形界面,如imshow

怎么搞

这里分两种情况,假设remote server都是linux系统,client系统分为

Windows

可以参考我之前的文章VScode远程连接Docker容器实现X11转发

Linux

直接在~/.ssh/config中对应的Host项目中加入ForwardX11 yes
同时支持配合ProxyJump使用

Host remote
  HostName 192.168.1.123
  User develop
  ProxyJump proxy@xxx.xxx.xxx.xxx:23333
  ForwardX11 yes

相关文章: