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!

SOLVED Logging into accounts with keys

Discussion in 'Security' started by tdot, Dec 5, 2017.

  1. tdot

    tdot Active Member

    Joined:
    Nov 2, 2017
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    How can I log in to user accounts home dir to upload files with FTP disabled? I have created user keys in cpanel and added each cpanel user to my sshdconfig but I'm still unable to login.

    #SSHD Config
    PermitRootLogin no
    Password Authentication no
    AllowUsers admin cpaneluser1 cpaneluser2 cpaneluser3
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Is SSH access enabled for the cPanel accounts via "WHM >> Manage Shell Access"?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tdot

    tdot Active Member

    Joined:
    Nov 2, 2017
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    The user is set to 'Jailed Shell'

    When i login in sftp

    Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)

    works fine for users that have su
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    What specific error message do you see when attempting to authenticate via SSH as the user?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. tdot

    tdot Active Member

    Joined:
    Nov 2, 2017
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,933
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Feel free to open a support ticket using the link in my signature so we can take a closer look at your SSH configuration to see why authorization is failing for cPanel users.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. tdot

    tdot Active Member

    Joined:
    Nov 2, 2017
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    It works now i just had to restart sshd
     
    cPanelMichael likes this.
Loading...

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