Preparing a macOS device for remote installation of Network Agent
To prepare a device running macOS for remote installation of Network Agent:
Make sure that sudo is installed on the target macOS device.
Test the device configuration:
Make sure port 22 is open on the client device: in the System Preferences, open the Sharing pane and make sure the Remote Login check box is selected. 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.
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 Secure Shell (SSH).
Save the sudoers file and then close it.
Connect to the device again through 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.
Download and create an installation package:
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