Preparing a Linux device for remote installation of Network Agent
To prepare a device running Linux for remote installation of Network Agent:
Make sure that sudo is installed on the target Linux device.
Test the device configuration:
Check whether you can connect to the device through an SSH client (such as PuTTY).
If you cannot connect to the device, open the /etc/ssh/sshd_config file and make sure that the following settings have the respective values listed below:
Save the file (if necessary) and restart the SSH service by using the sudo service ssh restart command.
Disable the sudo password for the user account under which the device is to be connected.
Use the visudo command in sudo to open the sudoers configuration file.
In the file you have opened, under the line starting with %sudo, specify the following: username ALL = (ALL) NOPASSWD: ALL.
In this case, username is the user account which is to be used for the device connection using 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.
Open the /etc/systemd/logind.conf file, and then do one of the following:
Specify 'no' as a value for the KillUserProcesses setting: KillUserProcesses=no.
For the KillExcludeUsers setting, type the user name of the account under which the remote installation is to be performed, for example, KillExcludeUsers=root.
To apply the changed setting, restart the Linux device or execute the following command:
$ sudo systemctl restart systemd-logind.service
If you want to install Network Agent on devices with the SUSE Linux Enterprise Server 15 operating system, install the insserv-compat package first to configure Network Agent.
Download and create an installation package:
Before installing the package on the device, make sure that it already has all the dependencies (programs and libraries) installed for this package.
You can view the dependencies for each package on your own, using utilities that are specific for the Linux distribution on which the package is to be installed. For more details about utilities, refer to your operating system documentation.
Download the Network Agent installation package.
To create a remote installation package, use the following files:
.deb or .rpm package of Network Agent
Create a remote installation task with the following settings:
On the Settings page of the Add 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 through SSH.
Run the remote installation task.
An error may be returned if you install Network Agent with SSH on devices running Fedora versions earlier than version 20. In this case, for successful installation of Network Agent, comment out the Defaults requiretty option (enclose it in comment syntax to remove it from parsed code) in the /etc/sudoers file. For a detailed description of the condition of the Defaults requiretty option that may cause problems during SSH connection, please refer to the Bugzilla bugtracker website.