Let’s access our Linux box using SSH and then launch Graphic Programs using X11 Forwarding. We will be using both Windows and Linux to access our device.
Upcloud (Get an additional 7 days and a $25 credit with promo code: christitus) https://upcloud.com/signup/?promo=christitus
X11 Client for Windows: https://sourceforge.net/projects/xming/ .
►► Digital Downloads ➜ https://www.cttstore.com
►► Patreon ➜ https://www.patreon.com/christitustech
►► Twitch ➜ https://www.twitch.tv/christitustech
►► Website and Guides ➜ https://christitus.com

That’s X11, I know it’s probably not as stable, what about Wayland
Given how old X Window System is you would assume that these kinks would have been worked out by now.
Thank you
Exception in thread "main" java.awt.AWTError: Can't connect to X11 window server
i cant pull up gedit at the 4:50 mark as it states " 'gedit' is not recognized as an internal or external command,
operable program or batch file." how can i fix this i have downloaded and installed it on my windows machine as well as my alpine VM?
9:58 For Linux enjoyers
Thanks for sharing your expertise. Basically a nice science fair project. If one has issue launching something as simple as a file viewer of a internet browser is little good one can say about it. For server stuff ssh and a good terminal client is more than enough.
What do they mean by this:
X11 forwarding should be enabled with caution. Users with the ability
to bypass file permissions on the remote host (for the user's X authoâ€
rization database) can access the local X11 display through the forâ€
warded connection. An attacker may then be able to perform activities
such as keystroke monitoring.
For this reason, X11 forwarding is subjected to X11 SECURITY extension
restrictions by default. Please refer to the ssh -Y option and the
ForwardX11Trusted directive in ssh_config(5) for more information.
(Debian-specific: X11 forwarding is not subjected to X11 SECURITY exâ€
tension restrictions by default, because too many programs currently
crash in this mode. Set the ForwardX11Trusted option to “no†to reâ€
store the upstream behaviour. This may change in future depending on
client-side improvements.)
video actually starts at 1:55
You ever get really bored and log into a Linux box from a windows box, the use X11 forwarding to launch VNC to log back into the Windows Box…. No just me…. Ok then.
this version of your studio was cooler.
Well I've been pronouncing Nautilus the wrong way the whole time.. I say "Nauuu -Tee-Lus"
What do you do on the Linux side to enable X11?
any graphical program: Unable to init server: Could not connect: Connection refused
Could not parse arguments: Cannot open display:
Just what I was looking for.
What happens if you open startx ? Will it load existing x session ? I tried piping x session through SSH but I had to create a script to automate login otherwise the server would just die after a session is closed, can't replicate that script any longer.
This is cool Titus.
I use mobaxterm is open-source ans free for personal use. Does forwarding auto magically and also has clients for a lot of other programs.
Here from Tryhackme!
the 2000$ question. do i the performance of the computer its affected while doing the xforward?
Oh ot lags by so much??! Can linux suck enough?! Skype (!), earliest versions of ot, used rendering screen area and sending data for not lagging remote screen; bandicam, fraps – why the hell this linuxy crapware does it so wrong?
I really like your mini xming/SSH/X11 forwarding tutorial. It's going to make life easier accessing my simulation server. Can you you show me how you modified bashrc in putty to reflect what you have here as that makes all the difference in my case running multiple terminal windows. Thanks again in advance.
thanks for the video
10:00
i want to do
So if I install this X11 server, I can write programs using Xlib and run it on Windows natively?
Hello Chris, thanks for your nice video. Could we use the X11 forwarding protocol to connect to a remote MS windows PC?
I'm new using the console, I love this trick ))
Any chance you would make this guide to create a file server to access files remotely (via SSH?) as if I'm connecting my laptop from one home network to another person's home network? I'd like to run a file server at home and share photos and movies between family members over Windows?
video starts at 1:55
X11 forwarding sucks, it has always sucked. For some reason, piping the graphics over the ssh loses important graphical items and disables buttons and other clickable items. The best solution when it is absolutely necessary to run GUI programs over an SSH connection is to tunnel VNC. Unfortunately, in some odd cases, VNC is not an option, in which case I recommend calling someone on site and walking them through the buttons to click, etc. while using a screen-share conferencing application.
Just start at 1:55 and you'll save some of your life. Good guide though.
what about linux mint to windows10 through ssh?
I thought application on SourceForge was safe
I could add many things(that I believe that are missing) here but I would like to add one important thing.
On RHEL/CentOS/Fedora systems if we change the port to anything other than the default, we need to update the SELinux rule. We need to update it actually by running semanage port -a -t ssh_port_t -p tcp {your new port number goes here}. Thus if you haven't disabled the SELinux.
xrdp any good?
I privately manage a few Linux machines via ssh, two remotely from UK to US. All connections are via ssh, sometimes using a tunnel for VNC and proxy browsing or using sftp to display remote file system. On the default Ubuntu file manager (files I think it is called) there is an option to connect using sftp then it shows up in your file manager locations same as local files. This would then make all remote files easily available for editing with any local application. Personally I've never found X11 forwarding very successful. Great videos by the way.
Appreciate VNC can be sometimes a wee bit slow but bearing in mind two file managers failed in your demo using X forwarding maybe VNC through an SSH tunnel would be a decent option.
You can run libGL apps if you use swrast mesa using llvmpipe. Might not work super fast, but it will allow apps to actually run. Not sure the state of Xming and if it even has the GLX and Composite extentions. Cygwin does.
On windows I use cygwin/x . Actual openssh. Works nicely.
du dürftest was langsammer sprechen in Deusch damit ich die English nicht so gut können genauso Mitkommmen . Ansonsten finde ich das Klasse. Habe dich mal Aboniert. Und vielleicht nutzt du mal das Forum mit und teilst dich dort mit deinen Dingen noch besser aus zusammen .English ist auch Möglich @carrabelloy.de https://justforfun-gaming.de/
Wow, I just realized I haven't done X11 forwarding in over a decade. At one of the places I used to work at, their monitoring software was configured to SSH into Linux, AIX, and Solaris boxes and bring up status windows on a Windows PC for monitoring what was happening in each of their environments. X11 forwarding is a powerful tool when used correctly, but a lot of its previous uses has been replaced by web interfaces and the results have been a mixed bag.
That said, just seeing it again has inspired me to take another look at it and see what I can cook up now. Web interfaces for everything built on HTML5 just doesn't do everything efficiently or as well as running an app on a remote host so there's still a good need for it. Thanks Chris, ideas are floating into my head for some of my tasks at work now. 🙂
Please… XMing was discontinued ages ago. i suppose some if not all problems you had might just come from this really old X server.
So PLEASE check out MobaXTerm, it is an AWESOME X-Server which also has its own SSH terminals + RDP Shells, WSL Shells, Powershell, cmd, XDMCP sessions and whatnot…. a TON of configuration options, not only fonts, window features, you can have your terminals in the program itself or just detach them… an X-Server is automatically when the program starts AND i haven't run into your latency or other problems (i can run KDE Plasma on it no problem for example).
Here is the link: https://mobaxterm.mobatek.net/
Wow all those browser extensions. Do a video on that.
8:15 Google Chrome didn't crash. It would probably have worked. Those two were warnings from GTK, not fatal errors. At most there would have been some issues with colors and icons on the browser interface. You already had Google Chrome running in another window, probably on the physical desktop environment, and it used that to launch a new tab or your home page.
Could I use x11 forwarding to start gui app when connecting to linux server wich has console only(no graphics shell)
Can I request a video about setting up a stable Virtual LAN network with a friend over the net for gaming?
FWIW: I think a PPTP & XRDP is a better solution since it enables remote access from any Windows machine. Most of time when I need remote access, its from a windows machine.
If all you're using SSH X Forwarding for is to run a file manager, then you can instead just use SFTP or SSHFS instead and use a local file manager application to manage your remote files. This has the benefit that you can copy paste or drag'n'drop files to upload/download files between your local and remote machine and there's no graphic/input latency as the application will be running locally. Also, there are a number of Security issues with doing X11 forwarding if you don't fully trust the server which using SSHFS/SFTP would avoid.
Hello Chris, very informative video, thanks. How would I go about piping say Microsoft Office from my Windows 10 PC over SSH to my Ubuntu Linux laptop, or another Windows 10 PC?