Article ID: 117305, created on Sep 16, 2013, last review on May 11, 2014

  • Applies to:
  • H-Sphere 3.6.2

Symptoms

Unable to connect to remote hosts in cluster from cpanel user under root user without password.

Cause

Missing necessary ssh keys.

Resolution

Enter the CP box as the cpanel user. Check if you have SSH public keys generated for the cpanel user.

RSA:

$ cat ~cpanel/.ssh/identity.pub

DSA:

$ cat ~cpanel/.ssh/id_dsa.pub

If any of these files does not exist, generate missing SSH key for the cpanel user by the corresponding command (passphrases must be empty):

RSA:

$ ssh-keygen -t rsa1

DSA:

$ ssh-keygen -d

Place the public SSH keys of the CP server's cpanel user into the corresponding files in the /root/.ssh folder on each Parallels H-Sphere box: Log into an Parallels H-Sphere box as root. Create the authentication key files for root if they don't exist:

RSA:

$ touch /root/.ssh/authorized_keys

DSA:

$ touch /root/.ssh/authorized_keys2

Insert the RSA key from the ~cpanel/.ssh/identity.pub file on the CP server into /root/.ssh/authorized_keys on this box, and the DSA key from ~cpanel/.ssh/id_dsa.pub into /root/.ssh/authorized_keys2, respectively.

e5eac925e853cc7ef3f6055683c98fbb 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF