check_by_ssh

Brian Hendrix bhendrix at stthomas.org
Tue Jan 20 19:00:03 CET 2004


Thanks for responding, David.
You are probably right. I don't have to use the -l option. Either way,
the command did not work.
 
I did create the authorized_keys file. I did NOT create, however, an
authorized_keys2 file. I assumed I didn't need it because I am using the
"-t rsa1" parameter when creating the key.
 
I've been testing by "su - nagios" and not logging in directly.
 
 
 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ><> ~~~
Brian Hendrix
Team Leader
DTR Services
Saint Thomas Health Services
2000 Church Street
Nashville, TN  37236
 
bhendrix at stthomas.org 
(615) 284-5297 (work)
(615) 222-1704 (fax)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Whatever you do, do your work heartily,
as for the Lord rather than for men
    - Colossians 3:23
~~~ ><> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

>>> "David Olbersen" <DOlbersen at stbernard.com> 1/20/2004 11:51:17 AM
>>>
Brian Hendrix wrote:


> I decided to use ssh instead. I did my research and configured ssh
correctly
> on both machines, created the key on nagios server, shared the public
key
> with remote AIX server. I can now as the nagios user on the nagios
server
> login via ssh to the remote system's nagios user without a
passphrase. Works
> great. However, whenever I use check_by_ssh, I am always getting
prompted for
> a passphrase. I am at a loss on what I may be missing. 
> 
> I created the key with the following command:
> 
> # ssh-keygen -t rsa1
> I had to use the -t parameter. It was required.
> 
> I am using the following command to connect to the remote server:
> 
> # ./check_by_ssh -H hostname -l nagios -C check_load
> 
> 
> Any assistance is greatly appreciated.

Brian,

A few notes, because you don't specifically mention them:

- Why use -l? From what I can see the login of 'nagios' is assumed

- Did you create remote:~/.ssh/authorized_keys or
remote:~/.ssh/authorized_keys2 ?

- How are you testing the SSH connection? Are you logged in as yourself
and
then su'd to nagios, or directly logged in as nagios? I've had problems
with my SSH 
key agent doing too much work.

-- 
David Olbersen 
iGuard Engineer
St. Bernard Software
15015 Avenue of Sciences
San Diego, CA 92127 
x2152




Confidentiality Notice: This email message, including any attachments, contains 
information that is confidential and/or legally privileged. The information is intended 
only for the individual(s) named above. If you are not the intended recipient or the 
person responsible for delivering the email to the intended recipient, be advised that 
you have received this email in error and that any use, dissemination, distribution, 
forwarding, printing, or copying of this email is strictly prohibited. If you have received 
this email in error, please purge it immediately and notify the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040120/033f1a0c/attachment.html>


More information about the Users mailing list