Parallels H-Sphere Control Panel interacts with its Unix-based servers via SSH protocol. For user to have permanent access to Parallels H-Sphere remote servers and to log into them automatically without entering password each time, the SSH public keys for the cpanel user on the CP box should be copied and added to each Unix box in Parallels H-Sphere cluster.
Normally, Parallels H-Sphere does this automatically during installation. However, sometimes there is a need to regenerate or restore SSH keys. This document will guide you through the process of generating SSH keys on the CP box and adding them to each Parallels H-Sphere server.
To generate SSH keys:
RSA:
$ cat ~cpanel/.ssh/identity.pub
DSA:
$ cat ~cpanel/.ssh/id_dsa.pub
RSA:
$ ssh-keygen -t rsa1
DSA:
$ ssh-keygen -d
/root/.ssh folder on each Parallels H-Sphere box:RSA:
# touch /root/.ssh/authorized_keys
DSA:
# touch /root/.ssh/authorized_keys2
~cpanel/.ssh/identity.pub file on the CP server into /root/.ssh/authorized_keys on this box,~cpanel/.ssh/id_dsa.pub into /root/.ssh/authorized_keys2, respectively.