Skip to main content

Wheel Group and SSH Keys

Comments

7 comments

  • cPanelMichael
    Hello :) There are several threads open where users have reported this error message. You can search for the following term on Google to see a list of these threads: "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." site:forums.cpanel.net
    Let us know if any of those solutions are helpful. Thank you.
    0
  • sebastian13
    I've spent hours on google trying to find the solution, but none of the ones I've found worked for my case - hence I've decided to post it here. Can someone assist? [quote="cPanelMichael, post: 1722142">Hello :) There are several threads open where users have reported this error message. You can search for the following term on Google to see a list of these threads: "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." site:forums.cpanel.net
    Let us know if any of those solutions are helpful. Thank you.
    0
  • cPanelMichael
    Just to clarify, it wasn't a generic Google search, but a list of threads on the cPanel forums with users experiencing that issue. Each thread has potential solutions, so I wanted to be sure you reviewed them before proceeding. If you have, then please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • sebastian13
    Thanks - already did.
    0
  • quizknows
    By authorizing a key for root, it gets placed in /root/.ssh/authorized_keys If you need to log in as newuser, that public key needs to be put in /home/newuser/.ssh/authorized_keys I am unaware of a way to do this via WHM, but it can easily be copied over command line.
    0
  • sebastian13
    You can authorize keys via WHM - when you either generate or import one, you have option to authorize it - all of my keys are, but it still doesn't work. I can only log in as root@ bot not the user I've set up manually with its own key.
    0
  • quizknows
    How are you authorizing keys for non-root users via WHM? As far as I know you can only authorize keys for root logins using the WHM interface. The username on the key itself is irrelevant for that. I've been doing this for years (sshing to an alternate user using keys). To put a public key into another account it has to be placed in /home/newuser/.ssh/authorized_keys When you ssh newuser@hostname.com, the SSH server on hostname.com looks in /home/newuser/.ssh/ for any authorized keys. Keys in /root/.ssh/ are only checked when you ssh as root to that server. When you authorize a key using WHM's key management, that's where it goes (/root/.ssh). Other user accounts can't be logged into using that key until it's copied to their home directories .ssh folder with proper permissions.
    0

Please sign in to leave a comment.