Previous page

Next page

Locate page in Contents

Print this page

Configuring Passwordless Access to the Source Node

You need to provide the Source Server credentials each time you execute the pbackup and prestore commands. However, you can allow these utilities to log in to the Source Server without having to enter the root password. To do this, you should provide each Source Server with authorized public SSH RSA keys:

  1. Log in to the Backup Server as root , and generate a pair of SSH keys - public and private:

    # ssh-keygen -t rsa

    Generating public/private rsa key pair.

    Enter file in which to save the key (/root/.ssh/id_rsa):

    Enter passphrase (empty for no passphrase):

    Enter same passphrase again:

    Your identification has been saved in /root/.ssh/id_rsa.

    Your public key has been saved in /root/.ssh/id_rsa.pub.

    The key fingerprint is:

    c6:19:a8:2c:67:31:15:e6:30:23:2b:8a:b0:63:77:8f root@dhcp-130.parallels.com

    Note that you must leave an empty passphrase in the above procedure. The private key is saved by default in /root/.ssh/id_rsa , and the public key is saved in /root/.ssh/id_rsa.pub .

  2. Transfer your public key to the /root/.ssh directory on each Source Server (use some intermediary name for the file not to overwrite the corresponding file on the Source Server):

    # scp /root/.ssh/id_rsa.pub root@dhcp-129.parallels.com:/root/.ssh/temp_name

    The authenticity of host 'dhcp-129.parallels.com (192.168.1.129)' can't be established.

    RSA key fingerprint is 01:fc:b6:e9:26:40:1f:1a:41:5f:7a:fb:cf:14:51.

    Are you sure you want to continue connecting (yes/no)? yes

    Warning: Permanently added 'dhcp-129.parallels.com,192.168.1.129' (RSA) to the list of known hosts.

    root@dhcp-129.parallels.com's password:

    id_rsa.pub 100% |*****************************| 235 00:00

  3. Add the contents of the transferred file to the authorized_keys file in this very directory on the Source Node. To do this, log in to the Source Server, change to the /root/.ssh directory, and issue the following command:

    # cat temp_name >> authorized_keys

Now the pbackup / prestore utilities should be able to log in to your Source Nodes as root without having to provide the root password.