Disable X11 When Using SSH On Mac OS X

When you ssh into another box from Mac OS X, X11 automatically starts up because X11 forwarding is enabled by default. I have no idea why it’s a default as I suspect the vast majority of Mac OS X users never use X11 forwarding. It’s annoying to need to quit it every time. The fix however is easy. Edit your ssh config located here: ~/.ssh/config.

By default you’ll see a line like this in a series of otherwise commented out configs:

   ForwardX11 yes

Change that “yes” to a “no” and save the file. No more quitting X11 every time you ssh into another box.

In the event you need to use X11 forwarding from time to time, you can enable it when connecting by doing:

ssh hostname.tld -o ForwardX11=yes

It’s nice to get rid of those little annoyances every once in a while.

Tags: , ,

Related Posts

Related Posts

One Response to “Disable X11 When Using SSH On Mac OS X”

  1. BestBryce says:

    I have noticed you don’t monetize accettura.com, don’t
    waste your traffic, you can earn additional bucks every month with new monetization method.
    This is the best adsense alternative for any
    type of website (they approve all sites), for more details simply search in gooogle:
    murgrabia’s tools

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.