O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

9.2 Configuring SSH

So that Nagios can run plugins over the secure shell remotely and automatically, it—or, strictly speaking, the user nagios on the Nagios server—must not be distracted by any password queries. This is avoided with a login via a Public Key mechanism.

9.2.1 Generating SSH key pairs on the Nagios server

The key pair required to do this is stored by the key generator ssh-keygen by default in the subdirectory .ssh of the respective user's home directory (for the user nagios, this therefore corresponds to the installation guide in 1.2 Compiling Source Code from page 39, that is, /usr/local/nagios). If it is also sent on its way with the -f private_keyfile option (without path specification), it will land in the current working directory, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required