I forgot to turn on "VNC viewers may control screen with password", to enter on my working Mac, is there way to turn-on this feature remotely via SSH (I'm on WindowsXP now)?

link|improve this question
feedback

migrated from stackoverflow.com Nov 5 '11 at 8:30

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 8 down vote accepted

Source: http://technotes.twosmallcoins.com/?p=279

Putty is a good SSH client for Windows.

1) SSH into your remote OS X machine with an administrator’s log in and password.

2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command:

sudo  /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all

3) Login using a VNC client. As I mentioned, TightVNC worked for me; for some reason, RealVNC and UltraVNC didn’t. Your password is “mypasswd” (see the -vncpw flag in the above command; you can and should change this).

4) When you are done, turn of screen sharing using your SSH session:

sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off
link|improve this answer
Amazing! Works! – StNickolay Nov 4 '11 at 22:43
@StNickolay How about accepting the answer then? :p I see you usually don't do that (9% accept rate), but that's how it's done at Stack Overflow in general :p – RobinJ Nov 4 '11 at 22:45
You aren't right :) I do that! But as you can see most ofmy questions lefted without answers:) – StNickolay Nov 4 '11 at 22:48
Ok, didnt check your question, sorry :p – RobinJ Nov 4 '11 at 22:57
One thing that Mac RD quite unusable for me (very slowly)... as opossed to windows RDC, which is pretty good. – StNickolay Nov 4 '11 at 23:04
show 2 more comments
feedback

Your Answer

 
or
required, but never shown