Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Tunneling X from linux to OS X via ssh..?

Tunneling X from linux to OS X via ssh..?
Thread Tools
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Sep 29, 2004, 12:53 PM
 
Is there a way to tunnel a remote X session via OS X's X11 and ssh from a Linux box?
     
Fresh-Faced Recruit
Join Date: Oct 2001
Location: Tampa, FL
Status: Offline
Reply With Quote
Sep 29, 2004, 03:25 PM
 
Yes. I do it all the time. Just type something like this:
ssh 192.168.1.1 -X

Make sure you use a capital X in the line. Once you establish the connection just type in you favorite command. Oh, and you have to start X on your mac first.
Cheers,
SweetsDream
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
Sep 30, 2004, 09:14 AM
 
Not sure, but you may need to enable X11 Forwarding in /etc/sshd_config

Cheers,
Mike
     
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Oct 1, 2004, 03:17 AM
 
Originally posted by Zim:
Not sure, but you may need to enable X11 Forwarding in /etc/sshd_config

Cheers,
Mike
Yeap... I just read that... thanks for the help!
     
Senior User
Join Date: Jan 2003
Location: Stuttgart, Germany
Status: Offline
Reply With Quote
Oct 1, 2004, 04:12 AM
 
Originally posted by sweetsdream:
... ssh 192.168.1.1 -X ...
The option '-X' must come before the host or else you'll execute '-X' as a (non-existent) command once you've logged in instead of having X11 forwarding enabled.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:47 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2