Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am able to ssh to my Linux computer which is on the same network as my Mac. From the Linux machine, I can ssh to my Macbook.

I am currently at work and I want to forward my Mac's display to the Windows machine that I am currently on (using Putty and Xming). I am able to run "Xeyes &" so I know that the X11 forwarding is working correctly.

How can I forward my entire screen, preferably without having to setup VNC? And remember, I only have access to the command line.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

This isn't how X11 works on the Mac currently (or at any time in the past).

The native Mac window manager uses Quartz 2D and Core Graphics to accomplish the rendering and composting of windows and icons on the Mac screen.

X11 writes into that space as a consumer - not as the end-all provider of drawing services so it can't forward things it doesn't get to see.

You will want to set up VNC sharing (which is the native Mac screen sharing technology) if you can't get by with just forwarding the X11 graphics.

share|improve this answer
    
Okay. That's what I figured. Thanks bmike. Is there any way I can forward a VNC through ssh? –  Ray Zane Aug 8 '12 at 19:47
add comment

You can run a VNC session through ssh.

Connect to the remote system from Terminal:

ssh -Y -g -l username -C -L 5901:localhost:5901 remote_hostname

Start VNC server on the remote system. The above assumes your server starts on display port 1.

Launch a VNC viewer on your local system and enter the connection information. In this example you would use 'localhost' for 'Host', and '5901' for your port.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.