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.

SOLVED Cannot connect with Filezilla or PuTTy

Discussion in 'General Discussion' started by psytanium, Jun 13, 2017.

Tags:
  1. psytanium

    psytanium Well-Known Member

    Joined:
    Jun 6, 2014
    Messages:
    87
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello,

    I generated a key from WHM > Manage root's SSH Keys
    The Key is authorized
    I did a conversion to PuTTy PPK format
    Loaded the file to Pageant
    The SSH password Authorization is disabled

    Now when I connect on PuTTy (user: root) i get this error :
    Disconnected: No supported authentication method available (server sent: publickey, gssapi-keyex, gssapi-with-mic)

    and when i connect on Filezilla i get this error:
    Error: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
    Error: Could not connect to server

    I think this is a result from the same problem.

    Ive been searching and trying for the past 2 days, I really appreciate your herlp.

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Please review the following threads and let us know if they help address the issue with FileZilla:

    I cannot log into FileZilla

    Regarding SSH, could you try using a SSH client other than Putty to rule it out as the cause of the issue?

    Thank you.
     
  3. psytanium

    psytanium Well-Known Member

    Joined:
    Jun 6, 2014
    Messages:
    87
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    In Filezilla, I changed the logon type from Normal to File, Username remain root and pointed the ppk key file already generated from "Manage root's SSH Keys".

    Same results:
    Code:
    Status:    Waiting to retry...
    Status:    Connecting to server.example.com...
    Response:    fzSftp started, protocol_version=8
    Command:    keyfile "C:\Program Files\PuTTY\insight_key.ppk"
    Command:    open "root@server.example.com" 22
    Error:    Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
    Error:    Could not connect to server
    Regarding PuTTY, I tried SupperPuTTY and MobaXterm, same error message:
    Code:
    Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)
     
    #3 psytanium, Jun 14, 2017
    Last edited by a moderator: Jun 14, 2017
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Feel free to 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.
     
  5. psytanium

    psytanium Well-Known Member

    Joined:
    Jun 6, 2014
    Messages:
    87
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Big thanks to cPanel team, this is the resume from the support ticket

    GoDaddy server and GoDaddy does not allow direct root logins to SSH on their VPSes, if you run the autofixer script (safesshrestart), this restarts SSHd into a configuration which doesn't have this restriction, thus direct root logins will succeed.

    However, toggling the password authentication option in WHM will restart SSHd back into the "normal" configuration where once
    again root logins are disabled.

    There's two ways to address this:

    1. You can edit the SSHd configuration file to allow root logins all the time. This option is not recommended, as it increases the server's vulnerability which is why GoDaddy doesn't allow it by default.

    2. You can either add a brand new user to the server and add them to the wheel group, or you can take an already existing account (one of your own) and add it to the wheel group.

    Once this is done, you can log into SSH using this user's name and password, then you can use 'su' or 'sudo' and escalate to root from there if root access is needed.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I'm happy to see a viable solution was found. Thank you for updating us with the outcome.
     
Loading...

Share This Page