• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: using ssh and X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using ssh and X


  • Subject: Re: using ssh and X
  • From: Randy Ford <email@hidden>
  • Date: Sun, 16 Feb 2003 13:05:23 -0600

On Sunday, February 16, 2003, at 10:01  AM, Josh Kuperman wrote:

Has anyone been able to get X forwarding to work through a Wireless
Linksys DSL/Cable Router. I can't get it to bring up an Xterm across
my local net.

My laptop is 192.168.1.3 and my desktop is 192.168.1.2
I issue 'xhost +' on my laptop.
I 'ssh  -X' to my desktop

You don't need to use xhost +. The ssh -X handles the security without opening your machine to any host who wants to mess with it.




At this point any attempt to start an xtermp complains about the DISPLAY.


I 'setenv DISPLAY 192.168.1.3'

If you are using ssh -X, don't change your DISPLAY: it is set by ssh to a "proxy" on the remote machine. If you override the DISPLAY, you will not be using the ssh X11 Forarding at all.


If, for some other reason, you do set the DISPLAY, you need a Display number as well as the ip: 192.168.1.3:0



and now everything hangs.

Check that your desktop's sshd server is configured for X11 forwarding. In /etc/sshd_config, you should have a line like the following:


	X11Forwarding yes

If is is set to "no", change it to yes. You'll need to bounce the sshd server to have it pickup the changes:

    # get pid of sshd server:
	ps -ax|grep sshd

	# use the first number from the line returned above for "pid"
	sudo kill HUP pid

Since I go back and forth between boxes, I set sshd for X11Forwarding on all machines.

randy.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: using ssh and X (From: Josh Kuperman <email@hidden>)

  • Prev by Date: Hiding X11's menu bar under KDE
  • Next by Date: Re: Printing from X11
  • Previous by thread: Re: using ssh and X
  • Next by thread: Re: using ssh and X
  • Index(es):
    • Date
    • Thread