<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cannot open display on remote machine in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421339#M36595</link>
    <description>I think there are several problems in your attempt:&lt;BR /&gt;&lt;BR /&gt;1.)&lt;BR /&gt;"xhost +" tells the X server (on your laptop) to disable X11 protocol security. The problem is, it uses the X11 protocol to do that. You can use "xhost +" only if X11 protocol access is already allowed. In other words, if you want to use "xhost +", enter the command on your laptop _before_ ssh'ing to the remote host. &lt;BR /&gt;&lt;BR /&gt;Or enter the "xhost +" command in another local terminal window on your laptop: it is not connection-specific, but takes effect on your entire X11 session.&lt;BR /&gt;&lt;BR /&gt;2.)&lt;BR /&gt;With this command sequence:&lt;BR /&gt;&lt;BR /&gt;ssh root@192.168.5.223 &lt;BR /&gt;export DISPLAY=:0.0&lt;BR /&gt;&lt;BR /&gt;... you are asking the X applications to connect to the display of the 192.168.5.223 machine, not to the display of your laptop. &lt;BR /&gt;&lt;BR /&gt;If 192.168.5.223 is a rack-mounted server, it may not even *have* a graphical display installed. The error message 'Xlib: connection to ":0.0" refused by server' indicates there is no local X server running on 192.168.5.223.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, assuming that 192.168.5.13 is the IP address of your laptop, the correct command sequence would be:&lt;BR /&gt;&lt;BR /&gt;[arvind@laptop ~]$ xhost +&lt;BR /&gt;[arvind@laptop ~]$ ssh root@192.168.5.223&lt;BR /&gt;[root@localhost ~]# export DISPLAY=192.168.5.13:0.0&lt;BR /&gt;[root@localhost ~]# xclock &amp;amp;&lt;BR /&gt;&lt;BR /&gt;The first command tells your laptop to accept unauthenticated remote X11 connections, the second is a standard ssh command, and the third tells the X applications on the remote host to send their windows to the display of your laptop.&lt;BR /&gt;&lt;BR /&gt;But it still might fail, because...&lt;BR /&gt;&lt;BR /&gt;3.)&lt;BR /&gt;Most Linux distributions will disallow all unencrypted remote X11 connections by default. This is done by adding "-nolisten tcp" to the startup options of the X server. You would have to find out how the X server is started on your laptop and remove this option, then restart your X display manager (logging out and back in will not be sufficient).&lt;BR /&gt;&lt;BR /&gt;If your laptop has an iptables firewall configured, you would also have to allow incoming access to TCP port 6000.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My suggestion:&lt;BR /&gt;&lt;BR /&gt;If ssh -X is not working on virtuozzo containers, you should find out why and fix it. The most common reason is that /etc/ssh/sshd_config in the remote machine/container has X11Forwarding disabled by default. Change it to "X11Forwarding yes", restart sshd and try connecting again.&lt;BR /&gt;&lt;BR /&gt;Using "ssh -X" is not only more secure, it is often actually *easier* than the old-style procedure.&lt;BR /&gt;&lt;BR /&gt;MK</description>
    <pubDate>Sun, 17 May 2009 11:59:46 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2009-05-17T11:59:46Z</dc:date>
    <item>
      <title>cannot open display on remote machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421338#M36594</link>
      <description>i am not able to open display on a remote machine.&lt;BR /&gt;this is what i have been trying&lt;BR /&gt;&lt;BR /&gt;[arvind@laptop ~]$ ssh root@192.168.5.223&lt;BR /&gt;root@192.168.5.223's password: &lt;BR /&gt;Last login: Sun May 17 02:27:41 2009 from 192.168.5.13&lt;BR /&gt;[root@localhost ~]# pwd&lt;BR /&gt;/root&lt;BR /&gt;[root@localhost ~]# export DISPLAY=:0.0&lt;BR /&gt;[root@localhost ~]# xhost +&lt;BR /&gt;Xlib: connection to ":0.0" refused by server&lt;BR /&gt;Xlib: No protocol specified&lt;BR /&gt; &lt;BR /&gt;xhost:  unable to open display ":0.0"&lt;BR /&gt;[root@localhost ~]# export DISPLAY=192.168.5.13:0.0&lt;BR /&gt;[root@localhost ~]# xhost +&lt;BR /&gt;xhost:  unable to open display "192.168.5.13:0.0"&lt;BR /&gt;[root@localhost ~]# xclock &amp;amp;&lt;BR /&gt;[1] 3555&lt;BR /&gt;[root@localhost ~]# Error: Can't open display: 192.168.5.13:0.0&lt;BR /&gt; &lt;BR /&gt;[1]+  Exit 1                  xclock&lt;BR /&gt;[root@localhost ~]# &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;kindly let me know where i am going wrong.&lt;BR /&gt;if i do a ssh -X root@192.168.5.223&lt;BR /&gt;things work fine. but not this way.&lt;BR /&gt;&lt;BR /&gt;i mainly want this to work because i am trying to install Oracle on virtuozzo containers (similar to solaris containers) where in i am not able to get the display going either on a remote machine. ssh -X is not working on containers.&lt;BR /&gt;&lt;BR /&gt;please help</description>
      <pubDate>Sun, 17 May 2009 11:16:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421338#M36594</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-05-17T11:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: cannot open display on remote machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421339#M36595</link>
      <description>I think there are several problems in your attempt:&lt;BR /&gt;&lt;BR /&gt;1.)&lt;BR /&gt;"xhost +" tells the X server (on your laptop) to disable X11 protocol security. The problem is, it uses the X11 protocol to do that. You can use "xhost +" only if X11 protocol access is already allowed. In other words, if you want to use "xhost +", enter the command on your laptop _before_ ssh'ing to the remote host. &lt;BR /&gt;&lt;BR /&gt;Or enter the "xhost +" command in another local terminal window on your laptop: it is not connection-specific, but takes effect on your entire X11 session.&lt;BR /&gt;&lt;BR /&gt;2.)&lt;BR /&gt;With this command sequence:&lt;BR /&gt;&lt;BR /&gt;ssh root@192.168.5.223 &lt;BR /&gt;export DISPLAY=:0.0&lt;BR /&gt;&lt;BR /&gt;... you are asking the X applications to connect to the display of the 192.168.5.223 machine, not to the display of your laptop. &lt;BR /&gt;&lt;BR /&gt;If 192.168.5.223 is a rack-mounted server, it may not even *have* a graphical display installed. The error message 'Xlib: connection to ":0.0" refused by server' indicates there is no local X server running on 192.168.5.223.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So, assuming that 192.168.5.13 is the IP address of your laptop, the correct command sequence would be:&lt;BR /&gt;&lt;BR /&gt;[arvind@laptop ~]$ xhost +&lt;BR /&gt;[arvind@laptop ~]$ ssh root@192.168.5.223&lt;BR /&gt;[root@localhost ~]# export DISPLAY=192.168.5.13:0.0&lt;BR /&gt;[root@localhost ~]# xclock &amp;amp;&lt;BR /&gt;&lt;BR /&gt;The first command tells your laptop to accept unauthenticated remote X11 connections, the second is a standard ssh command, and the third tells the X applications on the remote host to send their windows to the display of your laptop.&lt;BR /&gt;&lt;BR /&gt;But it still might fail, because...&lt;BR /&gt;&lt;BR /&gt;3.)&lt;BR /&gt;Most Linux distributions will disallow all unencrypted remote X11 connections by default. This is done by adding "-nolisten tcp" to the startup options of the X server. You would have to find out how the X server is started on your laptop and remove this option, then restart your X display manager (logging out and back in will not be sufficient).&lt;BR /&gt;&lt;BR /&gt;If your laptop has an iptables firewall configured, you would also have to allow incoming access to TCP port 6000.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;My suggestion:&lt;BR /&gt;&lt;BR /&gt;If ssh -X is not working on virtuozzo containers, you should find out why and fix it. The most common reason is that /etc/ssh/sshd_config in the remote machine/container has X11Forwarding disabled by default. Change it to "X11Forwarding yes", restart sshd and try connecting again.&lt;BR /&gt;&lt;BR /&gt;Using "ssh -X" is not only more secure, it is often actually *easier* than the old-style procedure.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Sun, 17 May 2009 11:59:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421339#M36595</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2009-05-17T11:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: cannot open display on remote machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421340#M36596</link>
      <description>thank you..&lt;BR /&gt;i did the X11Forwarding to yes &lt;BR /&gt;and also i had to install a package xorg-x11-xauth&lt;BR /&gt;&lt;BR /&gt;i got an error &lt;BR /&gt;debug1: Remote: No xauth program; cannot forward with spoofing.&lt;BR /&gt;and found the workaround here&lt;BR /&gt;&lt;A href="http://www.redhat.com/magazine/026dec06/features/tips_tricks/?intcmp=bcm_edmsept_007" target="_blank"&gt;http://www.redhat.com/magazine/026dec06/features/tips_tricks/?intcmp=bcm_edmsept_007&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;thank you for your help again</description>
      <pubDate>Sun, 17 May 2009 16:34:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421340#M36596</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-05-17T16:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: cannot open display on remote machine</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421341#M36597</link>
      <description>Hello&lt;BR /&gt;do you have reflection X manager installed?&lt;BR /&gt;Select &amp;gt; Linux &lt;BR /&gt;Methord &amp;gt; Open SSH&lt;BR /&gt;&lt;BR /&gt;type hostname &amp;amp; password,&lt;BR /&gt;&lt;BR /&gt;you should able to get display from remote machine,&lt;BR /&gt;thanks,</description>
      <pubDate>Mon, 18 May 2009 04:03:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cannot-open-display-on-remote-machine/m-p/4421341#M36597</guid>
      <dc:creator>avizen9</dc:creator>
      <dc:date>2009-05-18T04:03:23Z</dc:date>
    </item>
  </channel>
</rss>

