Xterm Giving Error That Display Is Not Set
$ xterm 
xterm: Xt error: Can't open display:  
xterm: DISPLAY is not set

I connect to the server using ssh -X user@server. DISPLAY is not set

$ echo $DISPLAY

$

I am running Ubuntu 13.04

0

1 Answer

Is X11 forwarding enabled in your sshd config?

grep -i x11 /etc/ssh/sshd_config

You should have:

X11Forwarding yes

If that's not the problem, try running ssh with "ssh -v" to get more debug output and post it here. It's also worth trying "ssh -Y".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest