不满足于外网使用vscode ssh remote进行命令行开发,甚至还想转发图形界面,如imshow
这里分两种情况,假设remote server都是linux系统,client系统分为
可以参考我之前的文章VScode远程连接Docker容器实现X11转发
直接在~/.ssh/config
中对应的Host项目中加入ForwardX11 yes
同时支持配合ProxyJump使用
Host remote
HostName 192.168.1.123
User develop
ProxyJump proxy@xxx.xxx.xxx.xxx:23333
ForwardX11 yes
原文:https://www.cnblogs.com/azureology/p/14850951.html