ssh without password not happening

vivek sharma sharma vivek_222 at rediffmail.com
Mon Mar 7 18:11:42 CET 2005


Hi,
   I am trying to make ssh work without password so as i can use check_by_ssh further

So for this what i have done is:

1.)
ssh-keygen -t rsa1
ssh-keygen -t dsa
ssh-keygen -t rsa

2.)
Copied the files generated into
~/.ssh on remote machine

The content of ~/.ssh/identity.pub on the local machine goes in the file ~/.ssh/authorized_keys on the remote machines.

The content of the ~/.ssh/id_dsa.pub on the local machine goes in /.ssh/authorized_keys on the remote machines.

Likewise, the content of the ~/.ssh/id_rsa.pub on the local machine is appended to ~/.ssh/authorized_keys on the remote machines

3.)
Priming the agent:
ssh_info_file=~/.ssh-agent-info-`hostname`
ssh-agent >$ssh_info_file
chmod 600 $ssh_info_file
source $ssh_info_file
ssh-add ~/.ssh/identity
ssh-add ~/.ssh/id_dsa
ssh-add ~/.ssh/id_rsa

4.)
Attaching the agent:

. ~/.ssh-agent-info-`hostname`

After doing all this when i try to ssh from nagios server m/c to client m/c where i ahve copied the keys still it asks for an password.

What may be missing in this .
Plz suggest.

Thanks.
Vivek.
>
>
>
>
>
>
>On Mon, 07 Mar 2005 Anton Kornexl wrote :
> >Tharanga wrote:
> >>Hi,
> >>  Iam usig a plugin to check my syslogs.all remote hosts syslogs are redirect to my nagios server and on that sever iam running the check_log2.pl  script. if  i used that in command line its workign fine. but if i put that to nagios it gives no output error (iam cheking the "syslog" key word to just chek the result)
> >>in my checkcomands.cfg i defined it as follws
> >>  define command {
> >>command_name check_log2
> >>command_line $USER1$/check_log2.pl -l /var/log/syslog -s /tmp/seek -p syslog
> >>}
> >>
> >
> >I had the same problem (with embedded Perl interpreter)
> >Enclose the check_log2.pl in a shell command file and use this command file as plugin
> ># 'check_warn_log' command definition
> >define command{
> >          command_name    check_warn_log
> >#       command_line    $USER1$/check_log2.pl -l /var/log/warn -s /tmp/warn.seek -p $ARG1$
> >          command_line    $USER1$/debug_plugin.sh -l /var/log/warn -s /tmp/warn.seek -p $ARG1$
> >          }
> >
> >
> >---- debug_plugin.sh ----
> >#!/bin/bash
> >/usr/lib/nagios/plugins/check_log2.pl $*
> >exit $?
> >
> >-- Anton Kornexl
> >
> >
> >
> >
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050307/4139847a/attachment.html>


More information about the Users mailing list