How to know if Mac OS X machine is being remotely viewed? Currently I have no way to know if my machine is being remotely viewed by our tech support, and would prefer to know, given the massive privacy breach that would entail should this be happening. I am running Mac OS X Snow Leopard.

Running

ps -A | grep Remote


I know this service is running:

/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAgent


My knowledge of administration of Macs on a network is limited, so I don't know what tools allow this.
If your computer is being remotely accessed, it will show a little viewer icon in the menu bar. (Note, I've been using screen sharing since OS X Leopard, and I've never seen the icon noted by de_an777 in his answer.

Go into System Preferences &gt; Shared. Make sure that Screen Sharing and Remote Management (for Apple's Remote Desktop) are both unchecked.

Also, check under Security &amp; Privacy &gt; Firewall and turn the Firewall on. Note the warning. &quot;The firewall will block all sharing services, such as file sharing, screen sharing, iChat Bonjour, and iTunes music sharing. If you want to allow sharing services, click Advanced and deselect the “Block all incoming connections” checkbox.&quot;

This will block any incoming screen sharing connection (as well as other services).
To check to make sure that you can't connect to your computer via screen sharing, you can use nmap, a free command line tool for &quot;network discovery and security auditing.&quot;
To use it, just type nmap [YOUR IP ADDRESS]

You'll see that nmap reports that the vnc (screen sharing) port is open. After turning off screen sharing and turning on the firewall:

(Note that I've explicitly allowed ssh, printer, and afp sharing in the Firewall.)
I hope this helps you!