$ Add-VBRCredentials -Type LinuxPublicKey -User veeamuser -PrivateKeyPath C:\windows\veeam\ssh\veeamusr_id_rsa -ElevateToRoot -Password "" -Passphrase $PASSPHRASE
Repeat two more times:
$ Add-VBRCredentials -Type LinuxPublicKey -User veeamuser -PrivateKeyPath C:\windows\veeam\ssh\veeamusr_id_rsa -ElevateToRoot -Password "" -Passphrase $PASSPHRASE
$ Add-VBRCredentials -Type LinuxPublicKey -User veeamuser -PrivateKeyPath C:\windows\veeam\ssh\veeamusr_id_rsa -ElevateToRoot -Password "" -Passphrase $PASSPHRASE
$ Get-VBRCredentials -Name veeamusr
Name Description
---- -----------
veeamusr Created by Powershell at 5/14/2021 11:38:26 AM.
veeamusr Created by Powershell at 5/14/2021 11:36:51 AM.
veeamusr Created by Powershell at 5/14/2021 12:19:02 PM.
- get-vbrcredentials does not have a feature to return the private key submitted, so I cannot programmatically determine if an existing key has the same private key or if it needs to be updated.
- New Add-VBRCredentials flag '-update' overwrites existing credential with unique key being the name
- New Add-VBRCredentials flag '-unique' returns error code if credential already exists in the desired state
- New Get-VBRCredentials flag '-privatekeyhash' that returns a SHA256 hash of the key to enable validation
Thank you,
Rick
Referencing:
powershell-f26/add-vbrcredentials-crede ... 18758.html
Internal Reference:
BSE-10950