Preparing a macOS device for remote installation of Network Agent

To prepare a device running macOS for remote installation of Network Agent:

  1. Make sure that sudo is installed on the target macOS device.
  2. Test the device configuration:
    1. Make sure port 22 is open on the client device. To do this, in the System Preferences, open the Sharing pane, and then make sure the Remote Login check box is selected.

      You can connect to the client device via Secure Shell (SSH) only through port 22. You cannot change the port number.

      You can use the ssh <device_name> command to log in to the macOS device remotely. In the Sharing pane, you can use the Allow access for option to set the scope of users who are allowed access to the macOS device.

    2. Disable the sudo password for the user account under which the device is to be connected.

      Use the sudo visudo command in the Terminal to open the sudoers configuration file. In the file that you have opened, in the User privilege specification entry specify the following: username ALL = (ALL) NOPASSWD: ALL. In this case, username stands for the user account, which is to be used for the device connection using SSH.

    3. Save the sudoers file and then close it.
    4. Connect to the device again via SSH and make sure that the Sudo service does not prompt you to enter a password; you can do this using the sudo whoami command.
  3. Download and create an installation package:
    1. Download the Network Agent installation package using one of the following methods:
      • In the console tree, by opening the context menu on Remote installation → Installation packages and selecting Show current application versions to choose from available packages
      • By downloading the relevant version of Network Agent from Technical Support website at https://support.kaspersky.com/
      • By requesting the installation package from Technical Support specialists
    2. To create a remote installation package, use the following files:
      • klnagent.kud
      • install.sh
      • klnagentmac.dmg
  4. Create a remote installation task with the following settings:
    • On the Settings page of the New task wizard, select the Using operating system resources through Administration Server check box. Clear all other check boxes.
    • On the Selecting an account to run the task page, to run the task specify the settings of the user account that is used for device connection via SSH.

The client device is ready for remote installation of Network Agent through the corresponding task that you have created.

Page top