[Nagiosplug-help] deploy plugins to remote server(farm)

Duncan Berriman duncan at dcl.co.uk
Thu Apr 17 16:00:38 CEST 2008


If you create an ssh key on your main server and add this to your remote
hosts authorized_keys file you will not need any password.

On your main server do something like

ssh-keygen -t rsa

(just press return in answer to all the questions).

Then look in the hidden .ssh directory under the accounts home directory.

Copy the contents of id_rsa.pub (the public key).

Log on to the remote box using the account you will be using to send file to

Update the authorized_keys files in the .ssh directory and add the contents
of id_rsa.pub from the main server to the end of the file.

I've not used this with scp only sftp but I'm pretty sure it will work just
the same.

Duncan


> -----Original Message-----
> From: nagiosplug-help-bounces at lists.sourceforge.net 
> [mailto:nagiosplug-help-bounces at lists.sourceforge.net] On 
> Behalf Of Heiko
> Sent: 17 April 2008 14:18
> To: nagiosplug-help at lists.sourceforge.net
> Subject: [Nagiosplug-help] deploy plugins to remote server(farm)
> 
> 
> Hello,
> is there a way to copy my new plugins to all the servers in one step,
> without a keypair?
> Im writing some plugins and right now I have to scp them to each
> server, including entering the pwd for each server.
> is it possible to create a batchfile that includes all the IP´s and
> where I have to enter the pwd only once?
> Each group of my servers have the same passwd.
> 
> 
> thx
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to 
> save $100. 
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java
.sun.com/javaone
_______________________________________________
Nagiosplug-help mailing list
Nagiosplug-help at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the Help mailing list