I accidentally turned off VNC on my hosted Mac. What do I do?
If you inadvertently turn off VNC / ARD on your hosted Mac, you can re-enable it through a console connection via SSH (which MacStadium turns on by default on all subscription based Mac servers) with these instructions:
- If you are accessing the hosted Mac from a local computer running OS X, you can click on Spotlight, and type ‘terminal’. Once in terminal, execute the command: ssh 192.168.1.200, where the number sequence is the IP of your hosted Mac.
- If you are on a Windows based PC or other local workstation, download a Telnet/SSH client such as PuTTY, and connect to the IP of your hosted Mac.
- When prompted, enter your administrator-privileged username and password (the account you use to access the remote Mac).
- Once logged in, you can execute the following command at the prompt to re-enable VNC (where it says mypasswd, insert your desired VNC Password):
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
You can now close your terminal/SSH window, and attempt to re-connect via your VNC / ARD client as normal.