then restart the ssh server and it should work. open the file: sshdconfig and edit the ForwardX11Trusted line to read yes, and If no such line exists, add it in. Xauth: file /home/dtyj/. However, it didnt work as the xauth list command returned nothing. I've created a new file at ~/.xinitrc with the following content: exec gnome-sessionĪnd I ran startx after that and it gave me this ~]$ startx Please do so.ĮDIT: actually, on second look maybe this isn't a wayland issue if it only happens when using sudo: you should not run gui programs (especially gtk ones) with sudo, use gksu. Second computer is just a doll for me, lab to test my experiments on. Local PC-> SSH to -> Remote PC I have two computers. ![]() Short instructions for VcXsrv/Xming: download and install the Windows package start XLaunch or Xming export the DISPLAY variable in your WSL terminal and start gedit. ![]() None of these answers worked for me (sshing via Cygwin on Windows 10 into a RHEL 6. Invalid MIT-MAGIC-COOKIE-1 key xhost: unable to open display ':0' When you log in using a X11 GUI, that session is automatically given a DISPLAY environment variable and a session-specific access key (stored either in /.Xauthority or in a file specified by the XAUTHORITY environment variable). (gnome-ssh-askpass:31922): Gtk-WARNING : cannot open display:localhost:10.0 If I change the url of the remote to . If I try to open those GUIs without the terminal, then the GUIs would just dont show up at all and no error message is shown. I gave you the means to test that possibility. I want to open GUI applications (xeyes, firefox, xlock etc) on remote computer by using SSH from Local computer to connect to remote computer. I use VcXsrv or Xming on my Windows desktops, both are very small and easy to install, but there exist other servers like Cygwin/X. X11 connection rejected because of wrong authentication. You did a good job of describing the problem in the first post - the cause of the problem is almost certainly related to gnome running on wayland. ![]() It's less fine to not have bothered to follow the link I provided which would help you learn and know exactly what I meant.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |