Here’s a quick write-up describing how to connect to your Mac at home from your Mac at work (or any other Mac…).
1) User access with administratorâ€™s rights on your remote OS X computer.
3) A VNC viewer client on your local computer.Â In our case, we’ll using Screen Sharing. You won’t find it in the finder; it’s hidden here:
4) Network access to the SSH service on your remote machine.Â This requires
a)Â You know your remote machineâ€™s hostname or IP address.
b)Â Being behind the firewall, having VPN access, or being accessible to the public Internet (i.e. no firewall).
How to Remotely Turn On (and off) OS X Screen Sharing
This procedure keeps security in mind.Â The idea is to turn on screen sharing while you need it, and then turn it off when youâ€™re done.
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 password -restart -agent -privs -all
3) Login using a VNC client. You can use Screen Sharing or Chicken of the VNC (see tip below).
Your password is â€œpasswordâ€ (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
Problems connecting with your VNC client, like Chicken of the VNC?
Set your remote display settings to greyscale (to speed up things) or ‘Let server decide). Anything lower than ‘thousands’ won’t work.
defaults write com.apple.ScreenSharing controlObserveQuality 2