This is a discussion on login into multiple servers thru script... within the Shell scripting forums, part of the Development/Scripting category; I need to login into multiple servers thru a script run couple commands and run find command as root. I ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
I need to login into multiple servers thru a script run couple commands and run find command as root. I only have ssh access to the servers as a user than I can "su" to root. If you have a similar script please post it. Also if you can suggest commands that I should consider please let me know.
Thank you in advance. |
| Sponsored Links | ||
|
|
|
||||
|
Well you can use ssh itself to do the job. For example:
Code:
ssh me@somebox.com /path/to/script |
|
|||
|
I have a similar requirement. Please check my other thread.
But the change is I don't want to authenticate to so many machines (thought the username and pwd are same) and execute the same command again and again. |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multiple server status script | marinm | Linux software | 21 | 10-24-2008 02:16 AM |
| shell script to send mail for each login. | ephdia | Shell scripting | 2 | 11-27-2007 05:42 PM |
| dovecot: pop3-login: pop3-login: error while loading shared libraries: libsepol.so.1 | raj | Mail Servers | 1 | 11-15-2007 11:43 AM |
| Script to add users to multiple servers. | deepakhg | Shell scripting | 0 | 03-17-2007 04:02 AM |
| shell script that parses multiple log files and checks for a | Anonymous | Shell scripting | 1 | 11-15-2006 10:38 PM |