Configure Screen Sharing via ssh

I have a couple of macs sitting at a remote location that currently has no people there. i need to get into the machines via VNC (have windows at my current location), to see something on the screen. unfortunately, last time i was in front of these machines, i turned on screen sharing, but did not enable the VNC password option. is there a way to configure that option remotely via ssh? I'd really hate to have to drive 2 hours to go hit a simple tick mark on a screen...

You can use the ARDAgent kickstart tool to set the password for VNC access. The command to do this is...
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/k ickstart -activate -configure -clientopts -setvnclegacy -vnclegacy yes -setvncpw -vncpw YOURPASSHERE -restart -agent

Similar Messages

  • Screen Sharing and SSH sessions freeze occasionally on multiple mac minis

    I have 28 Mac Minis at work. With such a large number of minis, I obviously can't have a monitor attached to each of them so I've got them plugged into a network switch and access them via Screen Sharing (both via regular Screen Sharing and ARD) and SSH sessions.
    A few of them seem to suffer from intermittent problems however. I'll be using Screen Sharing when the session freezes. It may unfreeze eventually, but I can also usually just quit out and re-connect and it will be unfrozen. The same thing happens when I'm connected via SSH, it will freeze and I won't be able to type in any more commands.
    I need help troubleshooting (or if anyone knows what could be causing this, that'd be cool too).
    I've tried connecting from both a Mac Pro on the wired network and a MacBook Pro on the wireless network. The freezing seems to only happen on certain Mac Minis as well.
    I've tried switching network cables from a Mac Mini that doesn't suffer from this problem with one that does and nothing changed.
    I also thought it might be a bandwidth issue at first, despite being a gigabit switch connected via cat6 to the rest of our gigabit network, but even when no significant bandwidth is being used, the freezing still occurs.
    One more thing I want to test is the connection between the switch all these Mac Minis is plugged into and one of the other switches that all our other network traffic goes through. I didn't set it up myself so I fear that it might be an old, damaged cable or something. Failing that, I have no idea what the problem could be, which is why I'm posting here.
    So, does anyone have any idea what the problem could be? Or any other ideas for troubleshooting the problem? Thanks.
    (They're all running 10.6.8, and range from Mid-2007 to 2009 models).

    It would be in the system log. However, the next step would be to safe-boot in order to eliminate third-party system modifications. That goes for both client and server. If you can reproduce the problem in safe mode, then you probably have a network issue. Take everything offline except one client and one server, and test.

  • Screen sharing and ssh tunnel

    I'm trying to connect screen sharing to a server (S2) on my local network through a server(S1) on my local network with a static IP (local) and a static IP (public)
    S1 is XServer G5 10.3.9 (dual nic)
    S2 is Mountain Lion Server 10.8.2
    Client: MBP ML 10.8.2
    Client -> S1 -> S2
    IP are for illustration
    S1: Public 71.100.100.200
    S1: Local 192.168.6.100
    S2: Local 192.168.6.101
    S1 Firewall rule: 01105 allow tcp from any to 192.168.6.0/24 5900
    On client:
    > ssh -L 5901:192.168.6.101:5900 71.100.100.200
    connect to server  vnc://192.168.6.101:5901
    ... no joy connection timeout - standard connection fail message for screen sharing.

    I managed to find a slightly different tunnel command that does work.
    ssh -t -L localhost:5901:S2:5900 S1
    ssh -t -L localhost:5901:<private server>:5900 <public(dmz) server>
    had to set screen sharing prerferences for adaptive quailty encryption of passworkd and keystroks only for the relatively slow connection.

  • Screen Sharing via iCloud on Lion Freezes at Login Screen

    After updating to OSX Lion 10.7.3, screen sharing between two computers via the Internet allows me to connect to the remote computer and see the remote user's login screen, but as soon as I click on a user to login, the screen share image freezes before I can enter the user password. 
    Using iCloud Back to My Mac because all machines have the same Apple ID & password. Exact same setup worked before the 10.7.3 upgrade, but it could be coincidence. 
    Details:
    Can see the remote computers in my finder,
    Can click on them and connect successfully using either the Apple ID or the name and password a user that is allowed under Sharing -> Screen Sharing,
    When clicking on "Screen Share," the computers connect and I'm prompted to either "Ask to Share the Display" or "Connect to Virtual Display"Since there really isn't anyone using the computer, I select "Connect to Virtual Display"
    After clicking "Connect to Virtual Display" the Screen Sharing window shows the remote computer's login screen, whcih shows the user names, their icons and "Sleep" "Restart" or "Shut Down" on the bottom of the screen.  One user has an orange circle with a white checkmark next to it. 
    Previously, I could click a user's name or icon, enter the password and control the remote Mac.  Now, not amount of clicking works. 
    Have tried disconnecting and reconnecting as different users or using Apple ID without changes in the perofmance. Have restarted both machines. 
    Any help?

    I'm having the same problem screen sharing to a Lion 10.7.3 machine, I get this message.
    However, it works just like it used to when I screen share from a 10.7.3 machine to another Mac running 10.6.8.
    Any thoughts?
    Thanks!

  • Video/Screen Sharing via 3G connection not possible - port restrictions?

    I'm running Jabber-based iChat AV 5.0.3 sessions from my MBP connected to the Internet via a wireless USB modem 3G/UMTS (German Telekom D1 network). My buddies are connected to the Internet via regular broadband connections (DSL). I have set up a hosted Jabber server via Dreamhost (without SSL, port 5222 used).
    Status Quo:
    - Contact status of remote Jabber users shows up properly. All buttons (text chat, screen sharing, video) are available (not greyed out) on both sides.
    - Text chat works fine.
    - Video chat and screen sharing can be invoked from both sides (confirmation window shows up), but after confirmation the initiation process doesn't finish successfully. The video/screen sharing session doesn't run. *iChat AV shows a message indicating that it doesn't receive an answer from the remote user device.* If the iChat session is initiated from a buddy's computer, the buddy gets the same message respectively.
    - For testing purposes, I changed the internet connection on my MBP from the mobile 3G USB modem to a regular *DSL broadband connection (same ISP, German Telekom). In this scenario, video/audio calls and screen sharing work flawlessly!* Therefore, I assume that the problems in 3G connection mode is caused by the ISP (German Telekom) blocking/restricting ports required by iChat AV for initiating the video call and streaming the data on their 3G network.
    Is there any way to bypass ISP restrictions, by either changing specific iChat AV port settings on both ends (client devices) or by port forwarding? If yes, which settings should I change? Unfortunately, it's couldn't find any document indicating which ports are opened/allowed by German Telekom's 2G/3G (GSM/UMTS) network.
    Below is an excerpt of the error message produced by iChat AV:
    iChat Connection Log:
    2010-11-09 21:18:19 +0100: AVChat started with ID 494414145.
    2010-11-09 21:18:19 +0100: [email protected]: State change from AVChatNoState to AVChatStateWaiting.
    2010-11-09 21:18:19 +0100: 0x1a8bf8b0: State change from AVChatNoState to AVChatStateInvited.
    2010-11-09 21:18:28 +0100: 0x1a8bf8b0: State change from AVChatStateInvited to AVChatStateConnecting.
    2010-11-09 21:18:28 +0100: [email protected]: State change from AVChatStateWaiting to AVChatStateConnecting.
    2010-11-09 21:18:48 +0100: 0x1a8bf8b0: State change from AVChatStateConnecting to AVChatStateEnded.
    2010-11-09 21:18:48 +0100: 0x1a8bf8b0: Error -8 (Did not receive a response from 0x1a8bf8b0.)
    2010-11-09 21:18:48 +0100: [email protected]: State change from AVChatStateConnecting to AVChatStateEnded.
    2010-11-09 21:18:48 +0100: [email protected]: Error -8 (Did not receive a response from 0x1a8bf8b0.)
    Video Conference Error Report:
    0.000000 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/DotMacConfiguration.m:1039 type=4 (FFFFFFFF/2)
    [HTTP GET failed (0)]
    0.000627 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/DotMacConfiguration.m:758 type=4 (FFFFFFFF/0)
    [HTTP GET failed (0)]
    0.346813 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/DotMacConfiguration.m:758 type=4 (FFFFFFFF/0)
    [HTTP GET failed (0)]
    1331.086051 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    1333.086142 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    1335.086270 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    1337.086603 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    1339.087985 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    1341.088212 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    1343.088361 @/SourceCache/VideoConference/VideoConference-415.22/SIP/SIP.c:2917 type=4 (900A0015/0)
    [SIPConnectIPPort failed]
    Video Conference Support Report:
    929.446913 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2059 type=2 (00000000/0)
    [Connection Data for call id: 1 returns 1
    934.996640 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2074 type=2 (00000000/0)
    [Prepare Connection With Remote Data - remote VCConnectionData: 1, local VCConnectionData: 1
    935.002114 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2266 type=2 (00000000/0)
    [Initiate Conference To User: u0 with Remote VCConnectionData: 1 with Local Connection Data: 1 conferenceSettings: 1]
    935.467624 @/SourceCache/VideoConference/VideoConference-415.22/SIP/Transport.c:2138 type=1 (00000000/0)
    [INVITE sip:user@rip:16402 SIP/2.0
    Via: SIP/2.0/UDP lip:16402;branch=z9hG4bK0fdd30e326aa779b
    Max-Forwards: 70
    To: "u0" <sip:user@rip:16402>
    From: "0" <sip:user@lip:16402>;tag=544473054
    Call-ID: 9c7ecf46-ec3d-11df-8530-f81eeb5f4012@lip
    CSeq: 1 INVITE
    Contact: <sip:user@lip:16402>;isfocus
    User-Agent: Viceroy 1.4
    Content-Type: application/sdp
    Content-Length: 708
    Video Conference User Report:
    928.427249 @:0 type=5 (00000000/16402)
    [Local SIP port]
    934.996832 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2171 type=5 (00000000/0)
    *[Remote Router]*
    *[PORT RESTRICTED]*
    934.996842 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2173 type=5 (00000000/0)
    [Remote CommNAT Result: 0x000000d0
    936.003962 @:0 type=5 (00000000/60)
    [Detected bandwidth (kbits/s): 2627 up, 2627 down. (00000000)
    936.033015 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VideoConferenceMultiController.m:2423 type=5 (00000000/0)
    [Start Conference With UserID: u0]
    978.787787 @:0 type=5 (00000000/16402)
    [Local SIP port]
    1014.011790 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2171 type=5 (00000000/0)
    [Remote Router]
    [PORT RESTRICTED]
    1014.011800 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2173 type=5 (00000000/0)
    [Remote CommNAT Result: 0x000000d0
    1015.024555 @:0 type=5 (00000000/60)
    [Detected bandwidth (kbits/s): 2627 up, 2627 down. (00000000)
    1015.031800 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VideoConferenceMultiController.m:2423 type=5 (00000000/0)
    [Start Conference With UserID: u0]
    1323.083386 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2171 type=5 (00000000/0)
    [Remote Router]
    [PORT RESTRICTED]
    1323.083396 @/SourceCache/VideoConference/VideoConference-415.22/Video Conference/VCInitiateConference.m:2173 type=5 (00000000/0)
    [Remote CommNAT Result: 0x000000d0
    (…)

    Hi,
    Does this 3G device have any set up functions that are on your Mac ?
    If it does not it is likely that it is wide open to all Port (65535 of them).
    I presume that in System Preferences > Network you see a Public IP when using this device ?
    Again this would tend to pint to all the ports being open.
    Is there anything on the ISP's web site that suggests this device is unsuitable to be used with VoIP or SIP connections ?
    VoIP (Voice over the Internet) uses the SIP connection process the way iChat does.
    Most likely the issues is the way packets are sent.
    When you do a download, for instance, do you find the speed increases in the first few minutes ?
    When some data packets are sent over the Internet the next one is not sent until confirmation that the first has arrived.
    This Latency effects Point to Point WiFi (antenna to Dish on House) and satellite connections mostly particularly when it is a two way thing.
    It can effect Mobile/Cell phone type connections.
    What sort of Speeds are you getting on the 3G device ?
    http://www.speedtest.net/
    Do these seem to get faster as the time proceeds ? (this can be difficult to spot).
    The Log mentions one end being at just over 2Gbps although it does not make it clear which end.
    As the Remote end is the end that reports "Router: Port Restricted" and it works over standard DSL we have to presume they have the ports open.
    You could try restricting iChat 's Bandwidth in iChat menu > Preferences > Video Section to 500kbps (try it at both ends)
    If that does not work try 200kbps
    This may stop iChat from trying to send data too Fast for the Network Connections.
    Realistically there are a few too many variables here.
    It could be Speed of data throughout at the Initiation point. (Slow Start up of data transfer)
    It could be an Internal setting preventing SIP.
    It could be that the 3G network sends and receives data by different routes.
    (I have seen this once when a ISP was repairing some Cabling. To maintain end user speeds they managed their own network to split Incoming and outgoing data to the end point.)
    iChat does not like this as it checks the IPs and the Hops (number of intermediate stages/servers) and if the data is different it will not connect (Man in the Middle attack protection).
    I can't remember the last time I knew of someone being successful with either an 3G USB dongle or a 3G phone as Modem (internet Sharing).
    Despite my ideas I think you will be unlucky and this will not work.
    10:31 PM Saturday; November 13, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Improve Screen Sharing, via dedicated Ethernet

    I have 2 mac pros on a network together.
    A >>> Network >>>B
    but I can also join via ethernet A >>>> B directly.
    With screen sharing it using port 5900.
    Is it possible to port only this traffic via the ethernet port2 (A>>B) so that it doesn't get restricted by other data?

    Seem to have sorted it now after much fiddling.

  • Screen sharing via Airport

    I have a 500mhz G4 running 10.4.11 with Airport card that I'd like to set up behind my TV and use for TV recording. I want to do this without having a monitor or keyboard connected.
    I can setup screen sharing so I can use screen sharing with my Macbook Pro via ethernet but if I want to do it via Airport, it seems that I need to set it up manually every time I start the G4.
    10.5 allows this but I would like to stay with 10.4 on this machine.

    In answer to the first question - Yes, I have a .Mac account, and both machines are set to access this account. With reference to the UpnP question - harder to anwer. I would guess I do at home, as Screen Sharing works there (though of course this leaves open the question of AppleTalk enablement under either AirPort or ethernet). Not so sure about work - do you know of a way I can check this?
    Thanks - you may be on to something.

  • Screen sharing via VPN

    Hey guys,
    I finally got my VPN connection working remotely. I was told it would be like I was actually on my local network...and it pretty much is except I can't do a screen share. Is there anyway to make this possible over VPN? When I'm locally connected I can screen share via any machine on the network.

    When you're on VPN you can do anything you can do locally over the LAN, except use auto-discovery protocols such as Bonjour to locate servers/services (at least without jumping through several other hoops).
    This means that you can certainly use VNC to share your server's screen but the server won't appear in the Finder's sidebar - you'll need to know the address of the server to do it.
    Just open Finder -> Go -> Connect to Server and enter the server's address in the form of:
    vnc://a.b.c.d
    (where 'a.b.c.d. is either the ip address or the hostname of the server).
    The same is true for other services, too - you can get there, but you have to know where you're going first.

  • Will Firefox Hello support screen sharing via video chat?

    First of all let me say a BIG thank you to all the developers who contribute to Firefox (and all Mozilla projects for that matter). I know countless dev hours goes into the project and I really appreciate all your hard work.
    To my question, I realize Firefox Hello is based on the webRTC standard and there are a many other options available for screencasting, but it would be incredibly convenient to have that feature natively built into Hello. Are there any plans to support screen sharing in the future?

    hi, yes screensharing features are in the roadmap for firefox hello (and already present in development versions of the browser) - this feature might land in firefox 38.

  • Screen sharing via iChat

    Not really a server question I know, but I wondered if anyone was experimenting with iChat screen sharing as a support tool. Most of my customers are set up for iChat using my own server and IM me with questions from time to time. I've just started installing Leopard on a few clients and wanted to try out the screen sharing. My own machine is a 17 inch Powerbook and it is looking as if there's a limit to the desktop size of the remote machine. Trying it with this particular client's machine, which is a 15 inch Macbook Pro with an attached 20 inch Cinema display, iChat screen sharing never finishes initialising. But if I reduce the resolution of the Cinema display from its default to, say, 1344x840 it works - and shows both remote screens (the Macbook display and the Cinema display).
    Am I discovering that it'll only work where there are no displays connected to the remote system that have a higher resolution than the local one(s), or is there a glitch here that can be fixed? Given that it just 'hangs' I'm tempted to think it's a glitch and not some designed-in limit.

    ...should have mentioned - the connection is jabber of course, the server is 10.4.11 and both machines are 10.5.1 with 2Gb RAM.

  • Screen sharing via ethernet

    I bought an Airport Express to replace the flaky AIrport signal I got on my MacMini. I connected it by ethernet to the Mini and set it all up. Browsing and streaming are now much more stable as is screen sharing from the Mini to the MacBook and iMac, but I now can't see the Mini if I want to share the other way round.
    Any advice?
    Jon

    Seem to have sorted it now after much fiddling.

  • Remote File Sharing via SSH-How to Set This Up the Easy Way

    So, I have been trying to gain access to my office iMac from my MacbookPro at home via the "interwebs" but keep getting the same issue...can not connect. I have read umpteen forums and threads. All give similar advice or are too technical to follow. I thought we made it work yesterday by installing Macfusion. That works just fine if the Mac is on. It will not wake a sleeping Mac. Here is my settup.
    Home (MBP running 10.6)
    Network (Timecapsule)
    Office (27in iMac running 10.6).
    I do have a static IP for the router.
    Here is what I want to do. Access my "sleeping" iMac from a different network via Connect Server for File Sharing. I have all the appropriate file sharing buttons checked. I can access TC using the static IP but that's as far as it goes.
    Is there a simple "Mac way" of doing this?
    Sincerely,
    Jim.
    Ps. I am happy to invest in a trusted third-party software that will "ping" the network to wake my Mac unlike Macfusion which connects only to a running Mac.

    Also check in System Preferences -> Energy Saver -> Wake for network access is ticked

  • Screen sharing via Back to my Mac

    I'm away from home for work.
    I have my iMac at home, connected to my internet connection which I know is working.  It is on the DMZ on my network so there are typically no issues with blocked ports and the firewall is turned off.
    With me I have my Macbook Pro. Both machines are on 10.10.2
    When I sign into BtmM on both machines the iMac shows up in finder on the MBP, however Finder says not connected and when i click share screen I get connection failed.
    What can I do to troubleshoot this to try and find what part of the chain the issue lies in? I won't be home for another few weeks, but should be able to make changes remotely (the iMac is on, I'm using it to chat to my partner daily and managed to connect remotely via Team Viewer tonight)
    TIA

    Hey TKarbon,
    Thank you for using Apple Support Communities.
    Here is a good article to use to resolve connection issues with Back to My Mac. 
    If you have issues using Back to My Mac - Apple Support
    Regards,
    Jeff D. 

  • Ipad screen sharing via wifi

    hello,
    i have a big problem.:) my boss want me to connect ipad to a computer / mac via wireless. and he wants to see ipad screen on the connected computer. for example when i open a app like ibooks or something else he wants to see same action on the connected computer. like a cloned screen property on pc's. i found some application like idisplay but it is mac /pc screen on ipad (extended screen like second monitor),t doesnt work for me unfortunately! i want opposite of this application. it is possible ?

    Sorry, but that's not possible. It's not even possible to show the iPad's screen (other than output of specific apps) via a directly-connected external monitor.
    Regards.

  • IPad screen sharing via 3G?

    Hi,
    does anyone know of a way to share the ipad screen to a Mac Computer via 3G (or alternatively to another iPad)? I would just need to see the screen, I do not need to operate the ipad via what I see, e.g. recieving low resolution screen pictures as jpg or video stream would be ok....
    Thanks,
    Joe.

    I am not aware of any such app. I Googled and did not find anything. You can control a computer via an iPad and use the iPad as a remote monitor for your computer though.

Maybe you are looking for