How to keep X11 display after su or sudo
Hi everyone! We receive a lot of emails asking how to keep X11-forwarding working after changing user to root inside a SSH session in MobaXterm. This is by default not allowed on Unix/Linux systems, because the X11 display connection belongs to the user you used to log with when connecting to your remote SSH server. X11-forwarding mechanism does not allow anyone to use the open display. However, in some cases you may need to start a graphical application like nedit or firefox in a sudo or su context. Read more »