Jim McNamara wrote: Thanks for your fast reply Jim and it's a great entry I understood all and now know why my config doesn't work.
> Nagios runs as user nagios (usually), not as root, so that is the > beginning of the problem. It is also possible that the remote host > doesn't accept key based authentication, but the normal ssh daemon will > accept keys ahead of passwords. > > On the nagios box, give yourself a shell as user nagios. depending on > your permissions, you may need to specify /bin/bash or /bin/sh for your > shell. Then you can generate the key with the ssh-keygen command. That > needs to be done as user nagios. You also don't need to create 3 keys. > That isn't the source of the problem, the limit on the number of keys is > likely in the thousands, but the "default" key on most linuxes is > ~/.ssh/id_rsa. So generate that without a password at a size that works > for you. Use man ssh-keygen if anything I'm saying about this is > unclear. I just have a little problem here. How can I became "nagios" if I login as "root"? I mean after login as "root" I get a "root" shell, how I can became "nagios" from this point? -- Cheers ReynierPM ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null