View Full Version : Screen capturing via ssh

Jul 19, 2012, 02:47 PM
Hi everybody,

Could you tell me how to capture screen via ssh from remote computer in local network? Then I'd like to not leave that file on destination Mac but send it to that remote computer ( with Linux OS).

Here is something like I'd like: http://forums.macrumors.com/showthread.php?t=307792
But I found some information that it has changed in newest MacOS and it seems like it should be something like this: http://my-domain.se/screencapture-in-mac-os-x-from-a-ssh-session-or-launchd-jobs/ or here: http://hints.macworld.com/article.php?story=20071220052216569

Could someone put it together? I'm not familiar with MacOS and not totally with bash scripts but hope we can deal with it together :)
And one more thing, what if I don't have root password, but I want capture screens of user which password I know and I log with it via ssh. Is it still possible?

Jul 19, 2012, 10:49 PM
You can share terminal sessions using the 'screen' utility on the same machine.

Jul 20, 2012, 12:08 AM
Re permissions, you can only get access to the screen if you are either:

a) root (or have sudo privs)
b) the same user that is logged into the GUI.

No way around it.

Jul 20, 2012, 02:26 AM
Ok. I dealed with it. I have this situation: b) the same user that is logged into the GUI. So it was finally not a big problem. I needed additionally turn on public key beacause every loop it asked for password.
Thanks :)