The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

can't connect to server with ssh

Discussion in 'General Discussion' started by JPedro, Jun 20, 2015.

  1. JPedro

    JPedro Registered

    Joined:
    Feb 19, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello

    First i want to say i'm really novice, i'll appreciate your patience.

    After a Server crash, that was only restarted with server restart on cloud hosting machine.
    When logging back to whm now i get the following message:
    "In order to access the interface, you will need to make sure that the software license on this server is active and installed." Asking to connect with ssh as root and run "/usr/local/cpanel/cpkeyclt".

    But when i try to connect i get the message "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)."

    Before server crash i had been exploring and setting a public key, but never finished process to connect with key, and think that's why permission denied.

    i have a copy of key, a text that starts with "Generating public/private rsa key pair..."

    Can i get some help to setup and connect with key via ssh (if possible using mac terminal)?

    Thank you
    JPedro
     
  2. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    How you are accessing your server now ? If you are having KVM or IPMI access then try reinstalling openssh server and client. This will fix your SSH issue.
     
  3. JPedro

    JPedro Registered

    Joined:
    Feb 19, 2015
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi, thanks for reply. I can´t access server. Always access with whm or ssh few times. Never used neither KVM or IPMI access.
     
  4. madmanmachines

    madmanmachines Well-Known Member

    Joined:
    Nov 28, 2014
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    This error indicates password authentication has been disabled. You'll need to correct the directive 'PasswordAuthentication no' or add it back to your sshd conf at '/etc/ssh/sshd_config'. You'll either need to contact your host, acquire a KVM, or access from a control panel file manager or terminal that has root access.
     
  5. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    You can ask your DataCenter to provide your IPMI or KVM and access the server in same way you are using ssh.

    Before going with IPMI I will suggest you to check below setting in WHM
    Home » Security Center » SSH Password Authorization Tweak

    Make sure password authentication method is enabled.
     
    madmanmachines likes this.
  6. lx24

    lx24 Member

    Joined:
    Oct 2, 2014
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    As it's asking for cpanel license update, you will not be able to do any changes from whm. You will need to get IPMI to get into ssh. You will need to dig out the exact problem through logs "/var/log/audit/audit.log" Make sure SElinux is disabled. Also try with reinstalling openssh, and reset the password for root.

    If you face issue then paste the logs here...
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as mentioned, you will need to consult with your provider for assistance with accessing SSH on your system if you can't access SSH or WHM. They can reset the SSH configuration file via console access.

    Thank you.
     
Loading...

Share This Page