Hello, This is my issue, my remote machine (CentOS 6.3, hosted in Azure windows environment) has an application that I need to test on my local box (CentOS 6.4, a laptop behind a router). Now, this is what I'm doing and the issue that I'm encountering: Local: $ xhost + $ ssh -X someusername at somehostname.net -p 49283 Remote: $ export DISPLAY=192.168.1.6:0.0 $ xclock ... and nothing, it just sits there and no xclock shows up :( . I'm fairly convinced that this is due to my router, but I don't know how to deal with it. Any ideas? Am I way off in my guess?
Yves S. Garret wrote:> Hello, > > This is my issue, my remote machine (CentOS 6.3, hosted in Azure windows > environment) has an application that I need to test on my local box > (CentOS 6.4, a laptop behind a router). > > Now, this is what I'm doing and the issue that I'm encountering: > Local: > $ xhost + > $ ssh -X someusername at somehostname.net -p 49283 > > Remote: > $ export DISPLAY=192.168.1.6:0.0 > $ xclock > > ... and nothing, it just sits there and no xclock shows up :( . I'm > fairly convinced that this is due to my router, but I don't know how todeal> with it. Any ideas? Am I way off in my guess?Several thoughts, immediately: is the firewall open for it? Does the /etc/ssh/sshd_config have X11 forwarding enabled? mark, rounding up the usual suspects
On Thu, Apr 18, 2013 at 04:42:18PM -0400, Yves S. Garret wrote:> $ xhost + > $ ssh -X someusername at somehostname.net -p 49283 > > Remote: > $ export DISPLAY=192.168.1.6:0.0Why are you doing this? If ssh isn't setting the DISPLAY variable to something like localhost:10.0 then sshd isn't configured to tunnel X, you're missing libraries, or something else. The whole point of "-X" is that it tells ssh to tunnel X traffic back to your machine. So all you should need to do is ssh -X user at host -p 49283 xclock Or ssh -Y user at host -p 49283 xclock -- rgds Stephen
On 19/04/13 06:42, Yves S. Garret wrote:> Hello, > > This is my issue, my remote machine (CentOS 6.3, hosted in Azure windows > environment) has an application that I need to test on my local box (CentOS > 6.4, a laptop behind a router). > > Now, this is what I'm doing and the issue that I'm encountering: > Local: > $ xhost + > $ ssh -X someusername at somehostname.net -p 49283I don't believe you need to export DISPLAY, it should already be set by virtue of using -X. Try omitting the export below and just run xclock. That ought to work. When you log in, what does set|grep DISP output?I always get the following output: DISPLAY=localhost:10.0 And all my GUI apps end up on my local desktop!> Remote: > $ export DISPLAY=192.168.1.6:0.0 > $ xclock > > ... and nothing, it just sits there and no xclock shows up :( . I'm fairly > convinced > that this is due to my router, but I don't know how to deal with it. Any > ideas? Am I > way off in my guess? > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos