Skip to main content
shubham9818
Silver ⭐️⭐️
Feb 10, 2022 3:26 PM UTC
Solved

Exhausted available authentication methods error

We tried with root user and with test user also, but still getting the above error. 

We also did below config change for root user

  • sudo vi /etc/ssh/sshd_config

Search and change the below lines as below,

  • PermitRootLogin yes
  • sudo systemctl restart sshd

 

For test user, we did below config change

sudo vi /etc/sudoers

added below line

ec2-user ALL=(ALL)  ALL

However, with doing the the above changes we are not able to login with both root and test user. Can you please help us on this

araujo
araujoAnswer
Platinum ⭐️⭐️⭐️
Feb 13, 2022 1:21 AM UTC

From the extension of your key file (key.ppk), my guess is that you're using PuTTY to connect to the VMs. Is that correct?

 

PuTTY uses a different key format than OpenSSH clients. If the above is correct, try converting your key.ppk to OpenSSH format using PuTTYgen (see link below) and try again using the converted file.

 

https://www.thegeekdiary.com/how-to-convert-puttys-private-key-ppk-to-ssh-key/

 

Cheers,

André

-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.

8 replies

araujo
Platinum ⭐️⭐️⭐️
Platinum ⭐️⭐️⭐️
Feb 11, 2022 5:23 AM UTC

Is this related to CDP? Where is your environment?

Without the context we can't help.

Translate
-- Was your question answered? Please take some time to click on "Accept as Solution" below this post. If you find a reply useful, say thanks by clicking on the thumbs up button.
shubham9818
Silver ⭐️⭐️
Feb 11, 2022 5:41 AM UTC
Yes. It is related to CDP. Environment is hosted in AWS.
Translate