run programs on a remote computer with script, how?
I know about ssh but I need a solution that will work independent of user input. Lets say I want to execute a shutdown -h now command on one of the computers on the network via a script from another computer in the network. How do I do this. ssh asks for a password. I figured out the sudo part to make it passwordless. Any ideas? Thanks
|
you can set up rexec to execute commands remotely from a known, trusted host automatically, you'd possibly want to do this through an ssh tunnel for security though.
for ssh authorisation automatically though, you'd need a dsa or rsa key pair setup for the particular host. |
Thank you very much
got it working with ssh pasword less login and its feature to execute a remote command. |
Sorry, what?! You just let anyone in the world have the ability to remotely shutdown your pc?! :eek:
|
I dont think so. It still uses DSA key. At least thats how I understand it works. The remote pc just has a copy of my public key.
|
Ok then, that sounds a bit saner. :)
|
All times are GMT -5. The time now is 05:07 PM. |