Home > Uncategorized > Enable ARD / VNC on command line

Enable ARD / VNC on command line

This is a handy OSX tip if you’re working away from home and have only SSH access, but would find it useful to open a VNC session through the SSH tunnel.

# Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC)
$ 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

# Disable Remote Desktop
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off -stop

Advertisements
Tags: ,
  1. August 21, 2013 at 16:04

    VNC port 5900

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: