On Sunday 24 December 2006 17:06, Mike Noble wrote: > One more thing on this is ssh will require you to enter your passwd. This > does not work with trying to automate (running from cron). To fix this > on the local machine (machine sync'ing from) you want to setup ssh > keys, this can be don with the following command: > > ssh-keygen -t dsa > > (just enter return for all questions) > > Now you want to copy the id_dsa.pub key to the remote machine. > > cd ~/.ssh > scp id_dsa.pub <remote machine>:/home/user/.ssh > ssh into the remote machine > cd .ssh > cat id_dsa.pub >> authorized_keys > (NOTE: make sure the home directory does not allow other write > permission (best to prevent group as well) or ssh will see this as > a security issue and will not work). > > Now if you exit out, and if you ssh into the remote machine again you > will not be asked for a password.
Thanks Mike! This also worked like a charm! Carl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
