Preparing the Remote Host for Automated Backups using SCP
- Last Updated: December 11, 2024
- 1 minute read
- LoadMaster
- LoadMaster LTSF
- Documentation
To prepare the remote host for automated backups using SCP, perform the following steps from the remote server that the LoadMaster backups will be sent to:
- Run the ssh-keygen command to generate the public/private RSA key pair.
- Do not assign a passphrase (leave the value empty).
- By default, the following files are created in the /home/user/.ssh/ directory:
- id_rsa (private key file) - this file will be uploaded to the LoadMaster.
- id_rsa.pub (public key file) - this value must be copied into the appropriate files on the remote host.
- Run the ssh-copy-id command to copy the public key information into the authorized_keys and known_hosts files: ssh-copy-id user@server.
- The /home/user/.ssh directory now has the following files:
- authorized_keys
- id_rsa
- id_rsa.pub
- known_hosts
- Export the private key (id_rsa) from the server.
- Upload the private key (id_rsa) as the Private Key File in the LoadMaster.
- Ensure to create a backup directory on the server and enter this path as the Remote Pathname in the LoadMaster, for example, /home/user/LMbackups.