SOLVED Setting Putty with SSH

lionsgate

Active Member
Feb 19, 2013
28
2
53
Vancouver, BC, Canada
cPanel Access Level
Root Administrator
Trying to setup Putty for SSH using instructions provided here:


Works until I try to connect. Putty returns the following error message:

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

ServerHealers

Well-Known Member
Sep 21, 2015
100
57
78
India
cPanel Access Level
Root Administrator
Are you trying to connect with SSH key or password? It is possible the password authentication might be disabled on your server causing this error. I'd whether the password authentication is disabled in the SSHD config.

If it has the below line, means the password authentication is disabled.
PasswordAuthentication no

To enable, change that line the SSHD configuration as follows and restart the SSHD service.
PasswordAuthentication yes
 
  • Like
Reactions: cPRex

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
576
266
138
IN
cPanel Access Level
Root Administrator

lionsgate

Active Member
Feb 19, 2013
28
2
53
Vancouver, BC, Canada
cPanel Access Level
Root Administrator
Are you trying to connect with SSH key or password? It is possible the password authentication might be disabled on your server causing this error. I'd whether the password authentication is disabled in the SSHD config.

If it has the below line, means the password authentication is disabled.
PasswordAuthentication no

To enable, change that line the SSHD configuration as follows and restart the SSHD service.
PasswordAuthentication yes
SSH Key. It is how it was setup before, but keys were inadvertently lost. Long story. Trying to re-setup, but then this issue.

From ssh_config
# PasswordAuthentication yes

That said, nothing on server side in back-end has changed. Seems that error message indicates not trying to connect using keys, but via password authentication.

I have Putty setup to use generated .ppk file as "Private Key File for Authentication"
 

kodeslogic

Well-Known Member
PartnerNOC
Apr 26, 2020
576
266
138
IN
cPanel Access Level
Root Administrator
Glad you have it resolved.