rienkevin
March 22nd, 2016, 05:30 AM
Hello, I have a problem to display remotely from windows via ssh. I've try for hours now and I don't get where do the problem come from :
I tried:
First:
ubuntu@server2:~$ xeyes&
[1] 26074
ubuntu@server:~$ Error: Can't open display:
Then:
ubuntu@server2:~$ export DISPLAY=:0.0
ubuntu@server2:~$ echo $DISPLAY
:0.0
ubuntu@server:~$ xeyes&
[1] 26912
ubuntu@server:~$ No protocol specified
Error: Can't open display: :0.0
checking: /etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
checking: /etc/ssh/sshd_config for
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalHost no
UseLogin no
Also:
cd /home/machine
mv .Xauthority .Xauthority.old
touch .Xauthority
Chown ubuntu:ubuntu .Xauthority
*restar*
ubuntu@server:~$ xauth listubuntu@server:~$
And:
ubuntu@server:~$ sudo startx
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Invalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Interrupted system call
xinit: server error
Someone has an idea ?
Regards,
Ottis
I tried:
First:
ubuntu@server2:~$ xeyes&
[1] 26074
ubuntu@server:~$ Error: Can't open display:
Then:
ubuntu@server2:~$ export DISPLAY=:0.0
ubuntu@server2:~$ echo $DISPLAY
:0.0
ubuntu@server:~$ xeyes&
[1] 26912
ubuntu@server:~$ No protocol specified
Error: Can't open display: :0.0
checking: /etc/ssh/ssh_config
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
checking: /etc/ssh/sshd_config for
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalHost no
UseLogin no
Also:
cd /home/machine
mv .Xauthority .Xauthority.old
touch .Xauthority
Chown ubuntu:ubuntu .Xauthority
*restar*
ubuntu@server:~$ xauth listubuntu@server:~$
And:
ubuntu@server:~$ sudo startx
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
Invalid MIT-MAGIC-COOKIE-1 keyxinit: giving up
xinit: unable to connect to X server: Interrupted system call
xinit: server error
Someone has an idea ?
Regards,
Ottis