New-VBOLinuxCredential
Short Description
Creates the Linux credentials record to connect to a Linux-based backup proxy server.
Syntax
|
New-VBOLinuxCredential [-SshPort <Int32>] [-ConnectionTimeout <Int32>] -Account <String> [-Password <SecureString>] [-PrivateKeyFilePath <String>] [-Passphrase <SecureString>] [-ElevateAccountToRoot] [-AddToSudoers] [-UseSuIfSudoUnavailable] [-RootPassword <SecureString>] [-Fingerprint <String>] [-PublicKeyBase64 <String>] [-IgnoreFingerprintCheck] [<CommonParameters>] |
Detailed Description
This cmdlet creates the VBOLinuxCredential object. This object contains Linux credentials to connect to a Linux-based backup proxy server.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Account |
Specifies a user name. The cmdlet will use this account for authentication to a Linux-based backup proxy server. |
|
True |
Named |
False |
|
AddToSudoers |
Defines that the cmdlet will add a user account to sudoers file. Default: False |
|
False |
Named |
False |
|
ConnectionTimeout |
Specifies the SSH connection timeout in milliseconds. Veeam Backup for Microsoft 365 uses this timeout to wait for connection to a Linux-based backup proxy server through SSH. Default: 30000 |
|
False |
Named |
False |
|
ElevateAccountToRoot |
Defines that the cmdlet will provide non-root users with root account privileges. Default: False |
|
False |
Named |
False |
|
Fingerprint |
Specifies the SSH host fingerprint. |
|
False |
Named |
False |
|
IgnoreFingerprintCheck |
Defines that Veeam Backup for Microsoft 365 will skip verification of the SSH fingerprint on a target Linux machine. Default: False |
|
False |
Named |
False |
|
Passphrase |
For the Identity/Pubkey authentication method. Specifies a passphrase for a Linux private key. |
|
False |
Named |
False |
|
Password |
Specifies a password. The cmdlet will use this password for authentication to a Linux-based backup proxy server. |
|
False |
Named |
False |
|
PrivateKeyFilePath |
For the Identity/Pubkey authentication method. Specifies the private key file path. |
|
False |
Named |
False |
|
PublicKeyBase64 |
Specifies the content of the public key file provided as a Base64 string. |
|
False |
Named |
False |
|
RootPassword |
Specifies a root password for authentication. |
|
False |
Named |
False |
|
SshPort |
Specifies a port number. The cmdlet will use this port to connect to a Linux-based backup proxy server through SSH. Permitted values: 1–65535. Default: 22 |
|
False |
Named |
False |
|
UseSuIfSudoUnavailable |
Defines that Veeam Backup for Microsoft 365 will use the Default: False |
|
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About Common Parameters section of Microsoft Learn.
Output Object
The cmdlet returns the VBOLinuxCredential object that contains Linux credentials.
Examples
Creating Linux Credentials Record
This example shows how to create a new record with Linux credentials for a Linux-based backup proxy server.
|
$linuxpwd = ConvertTo-SecureString -String "Pa$$word123" -AsPlainText -Force New-VBOLinuxCredential -Account "Administrator" -ElevateAccountToRoot:$true -Password $linuxpwd |
Perform the following steps:
- Run the
ConvertTo-SecureStringcmdlet. Specify the necessary parameters. Save the result to the$linuxpwdvariable. - Run the
New-VBOLinuxCredentialcmdlet. Specify the following settings:- Specify the
Accountparameter value. - Set the
truevalue for theElevateAccountToRootparameter. - Set the
$linuxpwdvariable as thePasswordparameter value.
- Specify the
Related Commands