This is a discussion on ssh many hosts , su - using different passwords within the Shell scripting forums, part of the Development/Scripting category; Hi, I would like to do ssh to many hosts and then would like to do su - with respective ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi,
I would like to do ssh to many hosts and then would like to do su - with respective host's passwords and execute certain commands. This being a secure and big network , we have to login every server individually and then su with different passwords. So is there a way to achive it? Thanks a lot in adance |
| Sponsored Links | ||
|
|
|
|||
|
Glad to see a response.
This is the scenerio: Hostname : host1, host2, host3 (Username has same password on all the server ![]() Username: user Password for user: password Different host has different root passwords Host:host1 - root password host1 Host:host2 - root password host2 so it would be like ssh -l <user> host1 after giving password su - <root password> command command exit Will this make any sense? Thanks 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 |
| Adding Users in Bulk + Passwords and permissions | ricksd2sd | Shell scripting | 0 | 04-23-2008 01:20 PM |
| how to reset root and user passwords - new install | forlornhope | Linux software | 2 | 07-05-2007 01:51 AM |
| Linux prevent the reuse of old passwords | chimu | Linux software | 3 | 05-14-2007 06:49 PM |
| /etc/hosts file | ricc | Linux software | 1 | 05-08-2007 08:32 PM |
| Problem changing expired passwords via ssh session | tom | Linux software | 1 | 07-24-2006 12:42 AM |