Skip to content

Install Agent with SSH keys

hakong edited this page Aug 31, 2015 · 8 revisions

Creating SSH keys

SSH keys should be in /var/spool/nagios/.ssh and owned by nagios:

mkdir /var/spool/nagios/.ssh
ssh-keygen -f /var/spool/nagios/.ssh/id_rsa
chown nagios:nagios /var/spool/nagios/.ssh -R

Testing

Remotely install the agent on localhost:

cat /var/spool/nagios/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys


If it works, you should see something like this:



Clone this wiki locally