Password Less Authentication - via Cron Doesn't work
Team,
I have a Script to run between Server1 & Server2 to use password less authentication.
If i run the Script manualy it executes successfully & all commands executes on the remote server & getting the Report on the Remote Server.
07:54:55 /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global
07:55:18 executed /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global and RC = 0
07:54:55 /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global
If i enable the script on the Crontab, i am getting the permission denied as below error. Not sure what is the Issue?
11:57:43 unixcli entered parm = /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global
I have a Script to run between Server1 & Server2 to use password less authentication.
If i run the Script manualy it executes successfully & all commands executes on the remote server & getting the Report on the Remote Server.
07:54:55 /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global
07:55:18 executed /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global and RC = 0
07:54:55 /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global
If i enable the script on the Crontab, i am getting the permission denied as below error. Not sure what is the Issue?
11:57:43 unixcli entered parm = /usr/local/bin/ssh root@Server2 /usr/sbin/umount /global
0