2

I am running a CentOS 7 VM using the AWS and my python code is facing this error:

: cannot connect to X server

Here are my settings:

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

echo $DISPLAY


sudo cat /etc/ssh/sshd_config | grep X
X11Forwarding yes
#X11DisplayOffset 10
#X11UseLocalhost yes
AcceptEnv XMODIFIERS
#       X11Forwarding no
ksmaurya
  • 91
  • 1
  • 2
  • 10

0 Answers0