xhost

Matthew Gillen me at mattgillen.net
Mon Dec 11 08:50:58 EST 2006


dsr at tao.merseine.nu wrote:
> On Sun, Dec 10, 2006 at 02:40:24PM -0500, Stephen Adler wrote:
>> I want to tighten up my X11 setup by using xhost. I know its not a very 
>> good method to
>> deal with the security issues related to X11, but I want to do something.
> 
> Do something even better, then: use ssh.
> 
> ssh -X hostname
> 
> will start a remote shell session on hostname with X credentials
> set up. "xterm &" should be displayed on your current X screen.

I'll second that.  Don't ever bother trying to set up xhost stuff.  ssh can do
everything for you, more securely than X's native protocols, and it should
"just work".  Of course, sometimes it doesn't, in which case you should check
your server's /etc/ssh/sshd_config and make sure there's a line in there like:
 X11Forwarding yes

Matt

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Discuss mailing list