Install and Configure Nagios Server and Clients
You can also use the direct download links as below;
> wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.2.0.tar.gz
Extract the xi-5.2.0.tar.gz using
> tar -zxvf xi-5.2.0.tar.gz
Run the following commands to install it.
At the end of installation, you will get the url address using you can access the Nagios server.
Open the url http://10.160.34.98/nagiosxi/
and enter and save following info.
Administrator Email Address:
and presss “Install”
Once you get “Installation Complete” message that means you have Nagios Server install completed.
Steps to Perform SSH Login Without Password Using ssh-keygen and ssh-copy-id
Step 1: Generate the keys
> ssh-keygen -t rsa
Step 2: Copy the public key to remote machine
> ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host
> ssh-copy-id -i ~/.ssh/id_rsa.pub email@example.com
Alternatively, you can paste in the keys using SSH:
cat ~/.ssh/id_rsa.pub | ssh firstname.lastname@example.org “mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys”
Step 3: Login to remote machine
> ssh remote-host
If you have loaded keys to the ssh-agent using the ssh-add, then ssh-copy-id will get the keys from the ssh-agent to copy to the remote-host. i.e, it copies the keys provided by ssh-add -L command to the remote-host, when you don’t pass option -i to the ssh-copy-id.
> ssh-add /Users/rajesh.kumar/.ssh/id_rsa
Step 4: Optional Step Four—Disable the Password for Root Login
> sudo nano /etc/ssh/sshd_config
Put the changes into effect:
> reload ssh
Within that file, find the line that includes PermitRootLogin and modify it to ensure that users can only connect with their SSH key:
> PermitRootLogin without-password