Re: FTP backup script I am running SPLAT NGX R65 and had some troubles getting the above to work, so I thought I would update the above to reflect my experiences. I have not had experience with any earlier versions of SPLAT, so whether the following applies to earlier versions, I don't know. In SPLAT, all SSH keys are located in the /etc/ssh directory: ssh_host_key (private key for SSH v1) ssh_host_dsa_key (private key for DSA encryption, SSH v2) ssh_host_rsa_key (private key for RSA encryption, SSH v2) and all three with the suffix .pub for the public key pair of the above keys. I decided to use DSA encryption, but the following should apply to any of the others. First, on the SPLAT box, the private key needs to be copied: cp /etc/ssh/ssh_host_dsa_key /root/.ssh/id_dsa (id_rsa for RSA, don't recall the SSH v1 name) Second, the public key file needs to be transferred to the system where the backup file will be transfered to and put in the user's ~/.ssh/authorized.keys or ~/.ssh/authorized_keys2 file. Note that authorized is spelled with a "z" not an "s". I lost a few hours tracking that error down. Finally, if the SSL StrictMode is on (it is by default) then the ~/.ssh directory must be set so that only the owner has rwx permissions and group and world have no permissions at all. The authorized_keys(2) file must not have wx permissions for group or world either. Hope this helps someone else out there. |