[LINUX] Measures to be taken when "Cannot open display" is displayed in X11 Forward

Nyan

At the client

ssh -X [email protected]
xeyes
Cannot open display: :0.0

: telephone :: cat: <Why ...

Is it because the server doesn't have xauth?

Reference: http://luozengbin.github.io/blog/2014-06-21-[Note] Remote x connection method.html

On the server (Ubuntu)

sudo apt install xauth
xauth list
hoge/unix:0  MIT-MAGIC-COOKIE-1  72kuxtu334nandeya

If you restart the server after this, xeyes will probably pass.

Recommended Posts

Measures to be taken when "Cannot open display" is displayed in X11 Forward
Measures to be taken when Suspicious Operation occurs in HttpResponse Redirect
Record of actions to be taken when google_image_download cannot be used
What to do when a warning message is displayed in pip list
What to do if abort is displayed when inputting camera video in OpenCV
What to do when is not in the sudoers file.This incident will be reported.
What to do when only the window is displayed and nothing is displayed in pygame Note
Measures to be taken when garbled characters when trying to redirect / pipe the result of aws-cli
When import matplotlib.pyplot cannot be done in pyenv-virtualenv environment
When "ERROR: HTTP is not supported." Is displayed in mpsyt
What to do if ʻObject arrays cannot be loaded when allow_pickle = False` occurs in numpy.load ()
When Pydev is not displayed even after adding Pydev5.2 to Eclipse (2016/8/30)
What to do when Japanese is not displayed on matplotlib
Solution when the image cannot be displayed with tkinter [python]
If it is not easy to understand, it cannot be improved.
When "No changes detected" is displayed in python3 manage.py makemigrations
Change the message displayed when logging in to Raspberry Pi
Solution to the problem that the display is corrupted when the .exe command is included in the while loop in wsl2
What to do if you get the message "" ~ .pkg "is corrupted and cannot be opened" when installing wxPython on Mac OS X