Wednesday, September 5, 2012

Prevent OS X from sleeping while ssh connection is active

As of mountain lion, you can stop a mac from sleeping while there is an active ssh session:
caffeinate -i ssh yourhost.something.com
This will prevent idle sleeps, other options are available.

No comments: