SSH public key authentication
General
Instead of using password authentication - anywhere where you're able to provide SSH credentials (hypervisors, VMs applications etc) you also have the public key alternative.**.
By default, vProtect uses the /opt/vprotect/.ssh/id_rsa
path, however you also can override it with your own path*.
*(this needs to be owned by vprotect
user and make sure it has the 0400
permission set.
**You don't have to pass a passphrase, you can leave this parameter blank.
Note: vProtect does not support keys other than "RSA"
Example:
Generate a key or use yours and store it as
/opt/vprotect/.ssh/id_rsa
(make sure that thevprotect
user and group own the file)example key generation:
use
ssh-copy-id
to upload your public key (asvprotect
user) to the KVM host:Check if you're able to log in to the hypervisor using the local
vprotect
user without being asked for the password:Now you should be able to index VMs regardless of the password set for the hypervisor (the key should be used instead)
Provide path to key (default: /opt/vprotect/.ssh/id_rsa) in vProtect dashboard
Last updated