vscode remote ssh實現x11轉發


什么鬼

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM