Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can't manage SSH key authentication for non-root/non-cPanel users

Discussion in 'General Discussion' started by accretor, Apr 27, 2012.

  1. accretor

    accretor Member

    Feb 3, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    I am having a problem granting shell access to a regular Linux shell account on a cPanel server.

    The account was created from the Linux command line rather than from cPanel because it isn't associated with any website or cPanel account. The purpose of the account was to allow the customer who owns the server to transfer full-backups form a previous company's server over SCP and then to log in and move to the /home directory so they could be restored on the new server. This works fine as long as the user is allowed to use password authentication.

    Recently, I enabled WHM's SSH Password Authorization Tweak. Since doing this, I cannot find a way to permit the user to login to SSH. Root works fine, but the user does not require that level of privilege. Disabling this "tweak" again and restoring password authentication allows the user to login, but I feel this is less secure.

    I tried creating an .ssh directory in the user's home dir and then adding the requisite key, but this does nothing. sshd just continues to reply "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." The /var/log/secure log file is useless to me since all it contains is "Connection closed by <IP>".

    Please, what on earth am I doing wrong?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice