AWS – Disconnected : No supported authentication methods available (server sent :publickey)

When you launches an instance in AWS, you need Private key to connect that instance to your SSH client. And when you download private key from AWS and try to register this .pem file in PuTTy or Filezilla both breaks your connection. PuTTy sends back an error message “AWS – Disconnected : No supported authentication methods available (server sent :publickey)” why?

So there can be multiple reasons like you are using a wrong DNS name, IP address or wrong login credentials for your instance. But the common case behind this error is private key file format.

PuTTy does not support .pem file format and we try to register pem file with our ssh client. So we just need to convert .pem file format into .ppk format first. And for converting pem file to .ppk format there is a tool called PuTTyGen which comes with putty.

Follow following steps to to convert .pem key to .ppk format-

  1. If you are working in widows environment go to All programs->PuTTy->PuTTyGen as shown in below screenshot  
    PuTTygen-ease2code.com
  2. Chose SSH-1(RSA) for latest version of putty.
  3. Click on load and select your .pem file as given in below screenshot 
    load-pemNow click on ‘save private key’ and save your key at secure place in your drive.

Steps to Import Private key in Putty-

  1. Open putty and select Session from left panel. 
  2. Write your Host Name or IP (for AWS use public DSN name in Hostname instead of IP address), SSH port number and give a name to your session in saved session text box as shown in below screenshot 
    save ppk file-AWS - Disconnected : No supported authentication methods available (server sent :publickey)-ease2code.com
  3. Now select Auth option under SSH from left panel and browse your private key file and open the session. Note that after adding the ppk file again goto the session option and save the settings by clicking on save button. If you don’t save the file, every time when you will open a session you have to select ppk file. ease2code-putty4-AWS - Disconnected : No supported authentication methods available (server sent :publickey)

we are open for your suggestions and improvements, feel free to reach out to www.ease2code.com !

Comments

  1. computer speakers says:

    First off I would like to say wonderful blog!
    I had a quick question in which I’d like to ask if you do not mind.
    I was curious to find out how you center yourself and clear your
    thoughts prior to writing. I’ve had a hard time clearing my
    mind in getting my thoughts out there. I truly do take pleasure in writing but it just
    seems like the first 10 to 15 minutes are usually lost just trying to figure out how to begin. Any suggestions or tips?
    Cheers!

  2. Its really a cool and useful piece of information. I am glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.

  3. Kristofer Klunder says:

    Hey! Someone in my Myspace group shared this site with us so I came to check it out. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Superb blog and terrific design.

  4. I just want to mention I’m beginner to blogging and definitely enjoyed your blog site. Most likely I’m likely to bookmark your site . You surely have perfect article content. Thanks for revealing your web-site.

  5. Thanh Decurtis says:

    fantastic submit, very informative. I wonder why the opposite specialists of this sector don’t understand this. You must proceed your writing. I am sure, you have a great readers’ base already!

  6. Edison Kveton says:

    You made some decent points there. I regarded on the web for the issue and located most people will go along with together with your website.

  7. annulling says:

    Awesomе website you have here but I was curious about
    if you knew of any forums that cover the ѕame topics discussed in this article?

    I’d really like to be a part of online community where
    I can get opinions from other knowledgeable іndiviԁuals
    that share tһe same interest. If you have any sᥙggestions,
    please let me know. Thanks a lot!

  8. Great ɑrticle.

  9. Adrian Earnhardt says:

    I can’t believe how great this site is. You keep up the good work. That’s my advice pal.

  10. Shirlee Delmastro says:

    With thanks! Valuable information!

Speak Your Mind

*