Enable Remote Login on macOS

To push install the N-sight macOS Monitoring Agent using Network Discovery, you must first enable Remote Login on the target macOS device.

How to enable Remote Login on macOS

You can enable Remote Login using either:

Terminal commands

To enable Remote Login using Terminal:

  1. On the target macOS device, open Utilities or use the shortcut Shift+Command+U.
  2. Launch Terminal with administrator privileges.
  3. Run the following commands:
    1. Enable Remote Login:
    2. systemsetup -setremotelogin on

    3. Create the SSH access group:

    4. dseditgroup -o create -q com.apple.access_ssh

    5. Add the administrator group to the SSH access group:

    6. dseditgroup -o edit -a admin -t group com.apple.access_ssh

Sharing preferences

To enable remote login using system settings:

  1. On the target macOS device, go to: Apple menu > System Settings > General > Sharing.
  2. In the Advanced section, turn on Remote Login.
  3. Select the Info button next to Remote Login.
  4. Under Allow access for, choose Only these users and select Administrators or a securely configured custom user/group.
  5. Select Done to save your changes.

Related articles