using ssh without password

Arnar Thorarinsson art at caa.is
Tue Mar 8 12:26:54 CET 2005


Generate a public/private key pair on nagios host:
ssh-keygen -t dsa -f .ssh/id_dsa

This produces two files, id_dsa and id_dsa.pub, the latter being the
public key.
Copy the public key to client: scp .ssh/id_dsa.pub <client>:~/.ssh/
Go to client and add the public key to the authorized keys file (make
sure that its the only line for nagios host).
cat id_dsa.pub >> authorized_keys2

think that should do the trick


On Tue, 2005-03-08 at 11:13, vivek sharma sharma wrote:
> Hi all,
>       I am trying make ssh work without password so as to use push_ssh
> in nagios .for this
> 
> I have done the following things:
> 1.)On nagios host :
> ssh-keygen -t rsa
> 
> no passphrase entered
> 
> 2.)created a .ssh dir. in the client host with 600 permissions
>   In this host created file by vi editor 
>     vi authorizedkeys2
> and pasted the contents of id_rsa.pub file from nagios host
> 
> 3.)then if i try to do ssh from nagios host to the client host still
> it asks for a password.
> 
> Dont know whats wrong now..
> Plz suggest
> 
> Thanks 
> Vivek
> 
> 
> 
> 
> 
> 
> [image]
-- 
Kveðja
Arnar Þórarinsson

Tölvunarfræðingur
Kerfisdeild
Sími : 569 4289
GSM  : 861 2871
----------------------
Flugmálastjórn Íslands
Reykjavíkurflugvöllur
121 Reykjavík
http://www.caa.is
----------------------



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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