Contents
Overview
SSH X11 Forwarding Display is a tricky thing to establish on different Windows operating systems.
MobaXterm is a free Xserver and tabbed SSH client for Windows Operating Systems which allows you to run native Linux Applications like they are running on your Windows.
Download MobaXterm
MobaXterm is a free Xserver and tabbed SSH client for Windows Operating Systems
How To
Open MobaXterm and Connect to your Linux Desktop/Server:
- Enable the X Server Button on the top toolbar
- Go to Sessions tab on the left sidebar
- Right-Click Saved sessions and create a new session
- Click the SSH tab and fill in: Host and username
- Make sure X11-Forwarding is Checked and click OK
The next steps are for Linux operating systems without X:
Linux Packages
CentOS/Fedora/RHEL X11 installation
yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1
Debian/Ubuntu X11 installation
apt-get install xauth xfonts-base
You can find other fonts by searching for packages containing ‘xfonts’ in their name.
SSH X11 Forwarding Display Configuration
Edit ‘/etc/ssh/sshd_config’ and make sure you have
X11Forwarding yes
D-Bus Error
If you are getting this error:
“D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open “/var/lib/dbus/machine-id”
Run:
dbus-uuidgen > /var/lib/dbus/machine-id
Screenshot
Running xclock on Windows 🙂
Enjoy!
DevOps/IT Specialist, Musician.
IT Manager – Faculty of Exact Sciences, Bar-Ilan University
Personal Website
Thanks for that a bunch.
how to open MobaXterm in Linux system
You don’t need MobaXterm in linux, just use the ssh command with -X in arguments.
Is it possible to replace the default font for the XServer in MobaXterm with a font of my liking?
Works like a charm for Mindstorms EV3 on EV3DEV and MobaXterm 10.2. Finally I can use Matplotlib.
How can I get the value of DISPLAY (or EXPORTED_DISPLAY) when X11-forwarding in not supported?
Worked like a charm in CentOS (directly with ssh -X).
All X11 settings were correct at server and client, but x11-fonts were missing. Thanks for the tip.
Moba works with RHEL 7.6 using XDMCP ?
why X11 Forwarding Display is very slow and what can be done to improve the performance?