在遠程 Ubuntu 系統上安裝 X11
sudo apt update sudo apt install xauth xorg openbox
在本機通過 SSH 啟用 X11 轉發:
在連接時加上 -X 或 -Y 參數:
-X
-Y
ssh -Y username@remote_ip
-X 會啟用基本的 X11 轉發,而 -Y 則是信任的 X11 轉發,允許更多的權限,通常推薦使用 -Y。