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 need to automatically copy a file at regular intervals from an account on one server to an account on the other. I know how to set this up in Cron and I know the parameters for SFTP and batch mode. Doing this on command line (via SSH) on the "target" server, SFTP asks for the password for the "from" account on the "source" server. But it works when I type that password.
I'm told I can generate RSA keys on the source server and copy those keys to the target server - and then SFTP will use those keys. I've run ssh-keygen and got some keys (private and public) in 2 files called "id_rsa" and "id_rsa.pub" in /home/*account*/.ssh on the source server.
And now I'm stuck! Most places I've looked for documentation assume a level of Unix and ssh knowledge I don't have. I'd be grateful if some kind person would point me to some good documentation or give me step-by-step instructions for getting that public key into the right place in the right file/folder on the target server so that SFTP will run unprompted in SSH and Cron on the target server.
It's probably really simple, but I ain't got it. :-) Thanks!!