10.3: Re-establish X11 forwarding after upgrade

Jan 30, '04 10:00:00AM

Contributed by: Lizard_King

I noticed that when I upgraded to Panther, my X11 forwarding configuration in /etc/ssh_config was disabled. Re-enabling is easy enough:

  1. Using Terminal.app or X11 xterm, open /etc/ssh_config with your favorite editor. You'll have to be a super user to edit this file. Example:
    [marley:~] lizard% sudo emacs /etc/ssh_config
    
  2. Find the line that contains ForwardX11

  3. Remove the leading # if it exists. This will uncomment this line so the ssh daemon will actually use this parameter instead of the default.

  4. Change the line to ForwardX11 yes

  5. Save your changes and exit the editor.
I believe you'll have to restart sshd for the changes to take effect. Once restarted, you should be able to ssh to your machine and forward X11 clients, as discussed in this previous hint:
 % ssh -X user@server.foo.com

Comments (6)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20040123092646924