Oracle Solaris System Administration (MOSC)

MOSC Banner

Password Less Authentication - via Cron Doesn't work

edited Jan 6, 2014 4:30AM in Oracle Solaris System Administration (MOSC) 1 commentAnswered
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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center