Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    Thanks. Did you create the diagram? Very impressive, an takes me a while to read. When I run DISPLAY=192.168.1.198:0 eog, it says Unable to init server: Could not connect: Connection refused. How shall I make it work? Do I need to make the X server on the remote host accept TCP connection? Commented Mar 13, 2019 at 10:16
  • If that IP is your remote Host's IP. It simply because your there's no x server listening on tcp:192.168.1.198:6000. @Tim If you want that to work, you have multiple solution, safe or not safe, simple or not simple. Commented Mar 13, 2019 at 14:57
  • Yes, I created the diagram (might use it for some future trainings). As written in the terminal 3 example (direct X11 connection across servers), theres two primary things to do: Your firewall needs to be opened (in your case allowing connections to tcp:192.168.1.198:6000, as 炸鱼薯条德里克 wrote), and you need to look up how to configure X11 permissions with e.g. xhosts. This assumes that a working X server is running on 192.168.1.198, so DISPLAY=192.168.1.198:0 eog should work if executed locally on that server. Commented Mar 19, 2019 at 17:53
  • "localhost:10.0" is only redirecting to the local X server, there is no X server started on the ssh-target. What is the target terminal doing without a X11 server? Like how :0 and :1 refer to X-servers (and then Monitor 1 and VNC), 2hat "display" does localhost:10 refer to then? @Folfy Commented Feb 13, 2023 at 21:13
  • Please see drawing and description for terminal 2b and 6b. For X11-Forwarding to make sense, you're supposed to have an X11 Server already running on your ssh-client host, and that's where the X11 traffic is redirected/forwarded to. Commented Feb 14, 2023 at 14:00