什么鬼
不滿足於外網使用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