How to Remotely Restart or Shut Down Your Mac

Don't Power Off a Sleeping Mac; Use a Remote Restart Instead

Remote Login - Sharing Preference pane
Screen shot courtesy of Coyote Moon, Inc.