From owner-freebsd-questions Sun Dec 17 17:39:10 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 17 17:39:07 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from c007.snv.cp.net (c007-h000.c007.snv.cp.net [209.228.33.206]) by hub.freebsd.org (Postfix) with SMTP id EF83837B400 for ; Sun, 17 Dec 2000 17:39:06 -0800 (PST) Received: (cpmta 20428 invoked from network); 17 Dec 2000 17:39:06 -0800 Received: from dsl-216-227-91-85.telocity.com (HELO zoso) (216.227.91.85) by smtp.telocity.com (209.228.33.206) with SMTP; 17 Dec 2000 17:39:06 -0800 X-Sent: 18 Dec 2000 01:39:06 GMT From: "Otter" To: "Dima Dorfman" , "Wahyudi Gunawan" Cc: Subject: RE: Cannot connect to X server Date: Sun, 17 Dec 2000 20:44:19 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <20001217221112.313643E09@bazooka.unixfreak.org> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG or if you choose to use ssh, go check out: http://www.defcon1.org/x11ssh.html -Otter }-----Original Message----- }From: owner-freebsd-questions@FreeBSD.ORG }[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Dima Dorfman }Sent: Sunday, December 17, 2000 5:11 PM }To: Wahyudi Gunawan }Cc: freebsd-questions@FreeBSD.ORG }Subject: Re: Cannot connect to X server } } }> I'd like to have my local xterm to be able to run }> application from other UNIX machine (sun) and display }> it on my local machine. }> }> My friend told me that I just need to run "xhost +" on }> local machine, telnet to the remote machine and run }> the apps. }> }> I did that and verify that the DISPLAY is pointing to }> my local machine. It complain "Cannot connect to X }> server ....." } }What else does it say? Exact error messages help. From the limited }information you did supply, the only thing I can think of would be to }make sure that the remote host can establish connections to the local }host. In other words, make sure the local host isn't subject to any }address translation (NAT). } }The approach you described, however, is suboptimal at best. First, }you're using telnet--that can't be good. Second, "xhost +" }effectively allows *any* host to display *anything* on your screen. }That might be okay if you're on an isolated network, but is generally }unacceptable on today's Internet. A better solution would be to use }SSH and its TCP/X forwarding capabilities. A typical session would }look like: } } localhost% ssh -X remotehost xterm } }If both the local and remote hosts are configured to do X forwarding, }and the DISPLAY environment variable is set when you run ssh, it will }set up a corresponding entry on the remote host. This allows for an }encrypted tunnel to run your X clients through. } }My description of the ssh X forwarding method is overly simplistic. }It is meant to give you a general idea of what can be done. If you }want to use it, please read the ssh(1) and sshd(8) manual pages. } }Hope this helps } } Dima Dorfman } dima@unixfreak.org } } }To Unsubscribe: send mail to majordomo@FreeBSD.org }with "unsubscribe freebsd-questions" in the body of the message } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message