Re: Where is this "xhost" command?
Re: Where is this "xhost" command?
- Subject: Re: Where is this "xhost" command?
- From: Rich Cook <email@hidden>
- Date: Wed, 20 Oct 2004 11:38:01 -0700
Reality check: You have X11.app installed, right? :-)
On Oct 20, 2004, at 7:17 AM, Tim Cutts wrote:
On 20 Oct 2004, at 2:53 pm, Kenneth Klein wrote:
Where is this "xhost" command? I'm trying to connect my iMac to an
AIX 5.3 LPAR and I can't connect.
It doesn't exist. Well, it does, but it shouldn't. It's quite
possible to use X11 without resorting to opening up your machine to
hackers by running xhost.
I run X11.app with my firewall on, and connections to port 6000
blocked. All my X connections are tunnelled through X11. To make
this work, all you need is to have the following in your .ssh/config
file on the Mac:
Host *
ForwardX11 yes
And the AIX machine needs this in its sshd_config file (which is
probably in /etc, and will need to be modified by the sysadmin of that
machine):
X11Forwarding yes
If those are both the case, then you should find that ssh will
automatically tunnel your X connections, and you don't need to do
anything else.
Make sure that your DISPLAY variable is set on your Mac, of course. I
use the following in my .bashrc to check that the X server is up, and
if it is, to set the DISPLAY variable:
if [ "x$DISPLAY" = "x" ]; then
if /usr/X11R6/bin/xdpyinfo -d :0.0 > /dev/null 2>&1; then
export DISPLAY=:0.0
fi
fi
This will cause a short delay in starting Terminal or xterm, if
X11.app isn't running, but I have X11.app in my startup items.
Tim
--
Dr Tim Cutts
Informatics Systems Group, Wellcome Trust Sanger Institute
GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5 860B 3CDD 3F56 E313 4233
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden