1. Generate a pair of keys using the command:
ssh-keygen -t rsa
2. Specify the location and file name in the format .ppk or .pem to save the key. For example:
/home/key.ppk
3. Enter a passphrase or leave it empty. The private key is protected with a passphrase.
4. The private key (.ppk) and public key (.pub) will be saved to the specified location and file:
Your identification has been saved in /home/key.ppk
Your public key has been saved in /home/key.ppk.pub
5. Change the file permissions of the private and public keys using the command:
chmod 755 /home/key.ppk
chmod 755 /home/key.ppk.pub
6. On the target oVirt Host, add the public key to the `authorized_keys` file using the command:
ssh-copy-id -i /home/key.ppk.pub <username>@<Host IP Address>
Example:
7. Copy the private key file to the backup server using any FTP tool. You now have the public key on the oVirt Host and the private key on the backup server.