Results 1 to 3 of 3
Hello ,
I have a problem which involves a set of command should be executed on remote host and output should be stored in a file. But due to security ...
- 02-07-2012 #1
Login to multiple host without using Expect
Hello ,
I have a problem which involves a set of command should be executed on remote host and output should be stored in a file. But due to security reason I can not use expect to enter the password and its not possible to create password less login for multiple user to do the same thing and we can not set one user to do this task.
I have to write only shell script to do this . Perl/Python is not suggested in my environment.
However perl/python can be taken under consideration if it doesn't involves us to install any extra module. Perl/Python script should not require any extra module which needs to be installed or does not comes with the default installation.
Let me know if any one have any idea about it.
- 02-07-2012 #2
Well, parallel-ssh probably can cover the remote execution and the saving of output either remote or local.
But that doesnt solve the authentication issue, unless you want to manually enter the password X times for every run.
Do I understand you correct:
You need to ssh into multiple, arbitrary named accounts? Not the same account on every machine?
If this is correct, then it indeed gets tricky. As it is understandable that the users do not want to expose their credentials.
Can you maybe explain with a made up example:
- how many users per machine are used
- and what kind of information you try to gather?
- How is it done right now (if at all)?You must always face the curtain with a bow.
- 02-07-2012 #3
Thanks for your reply.
There are N number of users and they have to use their own password while executing this scripts . It will sync the user dir to all these host as well as it will check once a user is logging to remote host it will log time, how many users are currently online and depending on the user role in the organisation they need to run commands those are not defined yet but it will not be more than 5 commands to one host at a time.
I can not use any other script which needs something to install on the box due to security reason.
Thank you


Reply With Quote