I have connected my Workstation (Windows PC) via ssh with X11forwarding to a remote PC(CentOS Linux release 7.5.1804 ).
The ssh connection works fine, but when I' try to open firefox or some other GUI I get the following error message:
Error: cannot open display: :5.
I also checked the
/etc/ssh/sshd_config file if X11Forwarding is enabled and it is.
I am using MobaXterm to establish a ssh connection, but i also tried putty or open ssh (ssh -Y user@rempte-adress) with the same result.
echo $DISPLAY shows :5. Does anyone have any idea what's the problem is here?
if I try to start the X server with
startx i get the following error message
xauth: file /home/glock/.serverauth.23745 does not exist (EE) Fatal server error: (EE) PAM authentication failed, cannot start X server. Perhaps you do not have console ownership? (EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) ^Cxinit: giving up xinit: unable to connect to X server: Connection refused xinit: unexpected signal 2 Couldn't get a file descriptor referring to the console