Skip to main content

Cannot get the SSH working on my cpanel account

Comments

4 comments

  • cPanelMichael
    Hello :) I've found most users report success with SSH access after following the steps in the guide at: [Tutorial] Interested in increasing the security of your server? Read this. (sshd hardening) Could you let us know if this guide helps? Thank you.
    0
  • vanessa
    Are you able to SSH in using password auth to check /var/log/secure and see what the issue might be? It sounds to me like perhaps the user just isn't authorized to log in, or either the user or key is incorrect.
    0
  • the_Dsigner
    I took a look at the SSH guide posted above and in my ect/ssh/sshd_config file and the "Allowusers" option is activated for the root and main cpanel account user, but not for the additional cpanel accounts I created after the server was installed. Does it matter that the cpanel account usernames that I want to have ssh key access at the account level are not on the Allowusers lists, since I thought that was only for accounts that you wanted to grant the su root option to?
    0
  • cPanelMichael
    Per that guide, the "AllowUsers" option allows you to specify a list of users that can log into the shell. Only these users will be able to log in, and no one else. You can disable this option, restart SSHd, and then check to see if SSH access is permitted for the additional users. Thank you.
    0

Please sign in to leave a comment.