Screen capturing via ssh

Discussion in 'Mac Programming' started by bLAZY, Jul 19, 2012.

  1. bLAZY macrumors newbie

    Jul 19, 2012
    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:
    But I found some information that it has changed in newest MacOS and it seems like it should be something like this: or here:

    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?
  2. mfram macrumors 65816

    Jan 23, 2010
    San Diego, CA USA
    You can share terminal sessions using the 'screen' utility on the same machine.
  3. foidulus macrumors 6502a

    Jan 15, 2007
    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.
  4. bLAZY thread starter macrumors newbie

    Jul 19, 2012
    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 :)

Share This Page