SOLVED Cannot connect with Filezilla or PuTTy

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
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 "[email protected]" 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)
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

psytanium

Well-Known Member
Jun 6, 2014
342
22
68
Lebanon
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
I'm happy to see a viable solution was found. Thank you for updating us with the outcome.