Network Agent installation is comprised of two steps:
A Linux device preparation
To prepare a device running Linux for remote installation of Network Agent:
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:
PasswordAuthentication no
ChallengeResponseAuthentication yes
Do not modify the /etc/ssh/sshd_config file if you can connect to the device with no issues; otherwise, you may encounter SSH authentication failure when running a remote installation task.
Save the file (if necessary) and restart the SSH service by using the sudo service ssh restart
command.
visudo
command in sudo to open the sudoers configuration file. In the file you have opened, find the line that starts with %sudo
(or with %wheel
if you are using the CentOS operating system). Under this line, 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. If you are using the Astra Linux operating system, in the /etc/sudoers file, add the last line with the following text: %astra-admin ALL=(ALL:ALL) NOPASSWD: ALL
sudo whoami
command./etc/systemd/logind.conf
file, and then do one of the following:KillUserProcesses=no
.KillExcludeUsers=root
.If the target device is running Astra Linux, add export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
string in the /home/<
username
>/.bashrc
file, where <
username
>
is the user account which is to be used for the device connection using SSH.
To apply the changed setting, restart the Linux device or execute the following command:
$ sudo systemctl restart systemd-logind.service
Network Agent remote installation
To install Network Agent on Linux devices remotely:
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.
su
command to preserve the environment: -m, -p, --preserve-environment
.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.
Page top