Ubuntu – Can’t get xterm to work. DISPLAY not set.

xorg

Here are my settings:

$ xterm
xterm Xt error: Can't open display: 
xterm:  DISPLAY is not set

$ echo $DISPLAY

$ cat /etc/ssh/sshd_config | grep X
X11Forwarding yes
X11DisplayOffset 10

Best Answer

You need to use the -X flag

ssh -X user@server