watergrinder
MIS
Could somebody please help me with this?
I was trying to connect to a remote system via ssh. When I run the script from my user account, ssh connects to remote system successfully. By doing this, I am able to execute remote commands.
As the cron is run under root, I tried running the same script as root, ssh asks for root password and does't automatically login as root. Now, this can't be done everytime and especially in my case I want my script to be automated.
Is there a solution to this problem? All I am doing is to avoid placing scripts on the other server.
Thanks in advance.
I was trying to connect to a remote system via ssh. When I run the script from my user account, ssh connects to remote system successfully. By doing this, I am able to execute remote commands.
As the cron is run under root, I tried running the same script as root, ssh asks for root password and does't automatically login as root. Now, this can't be done everytime and especially in my case I want my script to be automated.
Is there a solution to this problem? All I am doing is to avoid placing scripts on the other server.
Thanks in advance.