====== SSH Display Forwarding (X11) ====== [[:tools:ssh]] can use a local X11/Xorg server to forward applications windows. {{:tools:pasted:20241108-110656.png}} ===== Dependencies ===== You'll need a local X11 server. Options include * For macOS, [[https://www.xquartz.org/|Xquartz]] * For Win, [[https://mobaxterm.mobatek.net/|MobaXterm]] (for UPMC managed computers, see local [[:tools:mobaxterm]] notes) or [[https://sourceforge.net/projects/xming/|Xming]] * Prerequisites (Xwayland or Xorg) are likely already available when already on Linux or [[https://learn.microsoft.com/en-us/windows/wsl/install|Windows Subsystem for Linux]]. ===== Setup ===== Use ''-Y'' or ''-X'' with your ssh connection command to enable display forwarding. ssh -Y $USERNAME@$REMOTEHOST You can make this the default in ''~/.ssh/config'' using ''ForwardX11'' and ''ForwardX11Trusted'' directives. Note: ''Host *'' is for all hosts. You might want to replace ''*'' with a single or list of specific ssh servers. Host * # we don't need to encrypt X11 (faster) ForwardX11 yes ForwardX11Trusted yes