Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm trying to scp a couple of files from a RedHat Linux Enterprise 4 machine to a couple of other machines (one a Mac OSX and the other a Solaris). I see the same behavior with either remote machine. I'm able to manually scp files from my Linux machine to either remote machine without using a passphrase because I set up the appropriate public and private keys on all the machines. However, when I try to scp the same files as part of a cron script I get "Permission denied". Here are the relevant lines from my Cron Log attempting to scp to a remote machine called rem. Thanks very much.
debug1: Trying to start again
debug1: Authentications that can continue: publickey,gssapi-
debug1: Next authentication method: publickey
debug1: Offering public key: /home/Milan/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: Authentication succeeded (publickey).