Help Center
Choose product document...
Veeam Backup Free Edition 9.5
User Guide

Linux Credentials Record (Identity/Pubkey)

You can log on to a Linux server or VM running Linux OS using the Identity/Pubkey authentication method. The Identity/Pubkey authentication method helps protect against malicious applications like keyloggers, strengthens the security level and simplifies launch of automated tasks.

To use the Identity/Pubkey authentication method, you must generate a pair of keys — a public key and private key:

  • Public key is stored on Linux server(s) to which you plan to connect from the backup server. The key is kept in a special authorized_keys file containing a list of public keys.
  • Private key is stored on the client machine — backup server. The private key is protected with a passphrase. Even if the private key is intercepted, the eavesdropper will have to provide the passphrase to unlock the key and use it.

For authentication on a Linux server, the client must prove that it has the private key matching the public key stored on the Linux server. To do this, the client generates a cryptogram using the private key and passes this cryptogram to the Linux server. If the client uses the "correct" private key for the cryptogram, the Linux server can easily decrypt the cryptogram with a matching public key.

Veeam Backup Free Edition has the following limitations for the Identity/Pubkey authentication method:

  • Veeam Backup Free Edition does not support keys that are stored as binary data, for example, in a file of DER format.
  • Veeam Backup Free Edition supports only keys whose passphrase is encrypted with algorithms supported by PuTTY:
    • AES (Rijndael): 128-bit, 192-bit and 256-bit CBC or CTR (SSH-2 only)
    • Blowfish: 128-bit CBC
    • Triple-DES: 168-bit CBC

To add a credentials record using the Identity/Pubkey authentication method:

  1. Generate a pair of keys using a key generation utility, for example, ssh-keygen.
  2. Place the public key on a Linux server. To do this, add the public key to the authorized_keys file in the .ssh/ directory in the home directory on the Linux server.
  3. Place the private key in some folder on the backup server or in a network shared folder.
  4. In Veeam Backup Free Edition, from the main menu select Manage Credentials.
  5. Click Add > Linux private key.
  6. In the Username field, specify a user name for the created credentials record.
  7. In the Passphrase field, specify a passphrase for the private key on the backup server. To view the entered passphrase, click and hold the eye icon on the right of the field.
  8. In the Private key field, enter a path to the private key or click Browse to select a private key.
  9. In the SSH port field, specify a number of the SSH port that you plan to use to connect to a Linux server. By default, port 22 is used.
  10. If you specify data for a non-root account that does not have root permissions on a Linux server, you can use the Non-root account section to grant sudo rights to this account.
  1. To provide a non-root user with root account privileges, select the Elevate specified account to root check box.
  2. To add the user account to sudoers file, select the Add account to the sudoers file automatically check box. In the Root password field, enter the password for the root account.

If you do not enable this option, you will have to manually add the user account to the sudoers file.

  1. In the Description field, enter a description for the created credentials record. As there can be a number of similar account names, for example, Root, it is recommended that you supply a meaningful unique description for the credentials record so that you can distinguish it in the list. The description is shown in brackets, following the user name.

Linux Credentials Record (Identity/Pubkey) Important!

In the sudoers file, enable the NOPASSWD:ALL option for the user account that you want to elevate to root. Otherwise, jobs addressing a Linux server will fail as sudo will request the password.

Linux Credentials Record (Identity/Pubkey) 

Veeam Large Logo

User Guide

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation