When you run xterm the error appears as follows.
xterm Xt error: Can’t open display:
xterm: DISPLAY is not set
My system centos6.2
Solution.
1, first make sure you have x11 installed: yum -y install xorg-x11-xauth
2. Second, modify the configuration file: xorg-x11-xauth/etc/ssh/sshd_config,
AllowTcpForwarding yes
X11Forwarding yes
ForwardX11 yes or(ForwardX11Trusted)
3.restart
Similar Posts:
- Warning: untrusted X11 forwarding setup failed: xauth key data not generated
- [How to Solve] This service allows sftp connections only
- [Solved] Xterm error: Error: Terminal requires a parent element.
- Too many authentication failures for root
- SSH Connection Error: no matching host key type found. Their offer: ssh-dss [Solved]
- Xshell remote SSH error: the server sent an unexpected packet. RECEIVED:3,EXPECTED:20
- How to Solve network error: software caused connection abort (Step-by-step Tutorial)
- Modify the default open file path of Jupiter notebook
- Failed to get D-Bus connection: Operation not permitted [docker Install centos7]
- Install a docker container in centos7 that can log in SSH