LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 07-23-2008, 02:19 AM   #1
cdestiny
LQ Newbie
 
Registered: Jun 2007
Distribution: CentOS,Redhat
Posts: 25

Rep: Reputation: 15
Solution to inject script to multiple servers??


Hi,

I am currently taking care for about 100+ CentOS servers and i am having headache everytime when i tried to apply changes to the servers.

I have tried to use ssh public key in a host server and ssh to the rest server and apply the changes(run script).

Is there anyway for me to actually inject the script to the pool of servers?

You help is much appreciated.

Thank you.
 
Old 07-23-2008, 02:35 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
Maybe you can describe the problem(s) you have SSHing via key ?

You can run a script on a remote host:

ssh user@remotehost 'sh -c my shell script here'
 
Old 07-23-2008, 05:37 AM   #3
cdestiny
LQ Newbie
 
Registered: Jun 2007
Distribution: CentOS,Redhat
Posts: 25

Original Poster
Rep: Reputation: 15
There is no issue with the ssh public key just that it is too many to apply to if i want to use ssh public key.
I am wondering if there is another alternative to this case.
 
Old 07-23-2008, 02:14 PM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 59
There are essentially three existing mechanisms to remotely connect interactively to a system:

1) ssh
2) rsh
3) telnet

They are listed in decreasing order of security. Another solution would be to roll your own, but that is *far* more work than getting keys distributed.

You can copy files remotely using:

1) scp
2) rsync
3) rcp
4) ftp
5) tftp

But no matter what your choice, you still have to create the initial configuration on each remote server that grants access to your control server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help with script to check processes on multiple servers ncsuapex Programming 7 06-10-2008 12:02 PM
Setting name servers on multiple servers centosfan Linux - Server 3 01-23-2008 04:43 PM
Multiple Blade servers booting from multiple disk drives simultaneously NGC_cheryl Linux - Enterprise 0 11-26-2007 09:38 AM
Backup / Failover Solution with Colocated Servers benhalliday Linux - Software 1 05-25-2006 10:28 AM
qmail-inject problems iamnotherbert Linux - Networking 8 10-15-2004 12:57 PM


All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration