SSH authentication failed. libssh auth error: Failed to read private key: /root/.ssh/id_rsa (root, key=/root/.ssh/id_rsa) Verify SSH hostname and key, authentication failed.

Comments

4 comments

  • Official comment
    Avatar
    Paul Namuag

    Hi Priyanka,

    One of the common issues is you did not copy the public keys of root user from the ClusterControl controller host to the database you are going/trying to register. Please refer to our manual: https://docs.severalnines.com/docs/clustercontrol/requirements/passwordless-ssh/ 

    If you believe you did, then check if it is really the root user or other OS user privileged with sudo access. If you did use a different user, then make sure that user exist in CC controller host and also with the database nodes (read here https://docs.severalnines.com/docs/clustercontrol/requirements/operating-system-user/). Then that's the user you are going to use during the Deployment/Importing of nodes in the GUI. 

    Hope that helps.

    Comment actions Permalink
  • Avatar
    Ashraf Sharif

    Hi,

    If you could paste the job messages here, that would be helpful. You can go to ClusterControl -> Activity -> Jobs and copy the job logs message here (hide the sensitive data if any).

    What did you configure as the SSH user for the deployment? It looks like you specified a different SSH user other than root, which caused this failure because that particular user has no access to the root's private key. 

    Regards,
    Ashraf

    0
    Comment actions Permalink
  • Avatar
    priyanka mishra

    SSH authentication failed. libssh auth error: Access denied for 'publickey'. Authentication that can continue: publickey,password (root, key=/root/.ssh/id_rsa) Verify SSH hostname and key, authentication failed.

     

     

    please help me, why this error is coming??

    0
    Comment actions Permalink
  • Avatar
    Sebastian Insausti

    Hi,

    As my colleague mentioned, there is an issue with the SSH keys. Did you copy the public key to the server?

    You can check our documentation about this: https://docs.severalnines.com/docs/clustercontrol/requirements/passwordless-ssh/

    And, you can also create a support request if needed: https://severalnines.zendesk.com/hc/en-us/requests/new

    Regards,

    Sebastian.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk