Screen capturing via ssh

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

  1. macrumors newbie

    Joined:
    Jul 19, 2012
    #1
    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?
     
  2. macrumors 6502a

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

    Joined:
    Jan 15, 2007
    #3
    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. thread starter macrumors newbie

    Joined:
    Jul 19, 2012
    #4
    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