gopubhaskar
asked on
Running command in remote machine
I am writing a script to run a command in a remote machine. I tried "rsh" but found out that it was not useful enough for my purpose. Then I tried "rexec" but it didnt work at all, everytime it shows the error "Connection Refused" is there any other method ? or can someone please suggest how to make rexec work ?
rexec should prompt you for a password, but that's about the only difference from rsh...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
OpenSSH (ssh in general) allows you to you hostbased auth with pre-setup keys. Kind of tricky the first couple of setups but works great once you learn it.
Jess
Jess
why a C ?
Hi gopubhaskar
Please take a moment to read:
https://www.experts-exchange.com/Operating_Systems/WinNT/cmtyQuestAnswer.jsp#3
We value our experts who are investing their time and effort to solve Q's for others. That's why I kindly ask you to read the grading text and add a comment or the grade given fits the description or that I have to make a change.
When no comment has been added within 72 hrs I'll change the grade to an "A"
Thanks !
modulo
Community Support Moderator
Experts Exchange
Please take a moment to read:
https://www.experts-exchange.com/Operating_Systems/WinNT/cmtyQuestAnswer.jsp#3
We value our experts who are investing their time and effort to solve Q's for others. That's why I kindly ask you to read the grading text and add a comment or the grade given fits the description or that I have to make a change.
When no comment has been added within 72 hrs I'll change the grade to an "A"
Thanks !
modulo
Community Support Moderator
Experts Exchange
changed the grade to an "A"
modulo
Community Support Moderator
Experts Exchange
modulo
Community Support Moderator
Experts Exchange
I'm not sure if there is an easier way, but with openssh you can do this. But rsh would be easier, I don't understand why you can't use rsh.
http://www.openssh.com/
Regards
/Hans - Erik Skyttberg