Re: Where is this "xhost" command?
Re: Where is this "xhost" command?
- Subject: Re: Where is this "xhost" command?
- From: Ronnie Misra <email@hidden>
- Date: Wed, 20 Oct 2004 13:11:54 -0700
On Oct 20, 2004, at 12:49 PM, Surya wrote:
Thanks for all your repsonses. I am still stuck in the same
situation and need more help. I tried xhost + and then tried to login
to the other machine.
You should not run "xhost +" - it allows anyone to connect to your X
server and open windows, or even log your keystrokes.
I even exported the display from the solaris machine. The solaris
machine does have X11Forwarding set to yes in /etc/sshd_config.
Did you run ssh from an xterm or from Terminal? The shell you run ssh
from should already have the DISPLAY variable set; this will
automatically happen if you run from an xterm, so try that first. Also,
did you run "ssh -X" (or have you added the line "ForwardX11 yes" to
/etc/ssh_config or ~/.ssh/config)?
This time the echo $DISPLAY shows the IP of the MAC but when I try
running any Xapps like xclock it gets stuck. No error just hangs
there. The shell on both Solaris and MAC is bash.
Are you sure you didn't set DISPLAY yourself? If ssh sets DISPLAY, it
should be of the form "localhost:10.0"; I don't think that ssh will
ever automatically set DISPLAY to anything containing an IP address
other than localhost.
xhost command only works from the xterm run on X11 OS X
How does it fail? If you see:
xhost: unable to open display ""
this means that the DISPLAY variable isn't set. If you see:
bash: xhost: command not found
That means /usr/X11R6/bin is not in your path. But again, as I
mentioned above, you should not use xhost.
Ronnie
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden