I’d be very grateful if anyone can help figure this out.
I have a simple shell script that has only a couple lines:
[code]
rm /Volumes/drive/folder/*
scp -r [email protected]:/Volumes/drive/folder/
[/code]
the “admin_user” account has an ssh key to be able to connect to the remote server without having to enter in a password.
if i run this script manually, as either the “admin_user” or as root, it works.
i need this to run via launchd as a set time every day, which i’ve successfully configured, with the UserName key. the script does run via launchd and it successfully deletes the files (the first line of the script).
it is failing, when run via launchd, with the second line. the files are never copied.
the log shows that the ssh key isn’t working:
12/19/08 10:43:00 AM edu.example.xxx_xxx_xml[1386] Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
i’m not sure what i need to do differently as far as configuring the keys.
many thanks,
chris
Comments are closed