check_by_ssh
Demetri Mouratis
dmourati at cm.math.uiuc.edu
Fri Sep 17 01:33:12 CEST 2004
You need to copy the id_rsa.pub key, not the private one.
On Thu, 16 Sep 2004, Harper Mann wrote:
> If you "su - nagios" and try to ssh to the target system, does it prompt for
> a password?
>
> Make sure .ssh is owned by nagios or whatever the target ID is and it's
> permissions are set 0700. Ssh will silently fail if .ssh is not 0700.
>
> - Harper
>
> Harper Mann
> Groundwork Open Source Solutions
> 510-599-2075 (cell)
>
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
> [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Capacci
> Thomas
> Sent: Thursday, September 16, 2004 2:12 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] check_by_ssh
>
> Hi all,
>
> I've got a problem trying to run checks by ssh.
> Nagios is running on a debian and checking disks size on a redhat host
> with no problem.
> When i try the same thing on other machines i always try to connect to
> the remote host and ssh keep asking me for a password.
> I've made on nagios server ssh-keygen -t rsa with empty passphrase. I
> copied the id_rsa (renamed authorized_keys) on the remote host in the
> directory /home/nagios/.ssh and i've copied check_disk on the remote
> host in /usr/libexec.
> I keep asking what i've done wrong...
>
> Thanks for your help.
---------------------------------------------------------------------
Demetri Mouratis
dmourati at linfactory.com
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list