I am using an AWS ec2 instance. Previously I was connecting via Filezilla, Putty and MySQL using the provided key file with no problem. Now for some reason I am unable to access the sever.

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

I have checked the public key is correct. I have checked the location of the ppk and pem files.

What else could be the cause of this error?

FileZilla config

AWS EC2 instance

  • 1
    This error means that the server is offering publickey as an authentication method, but your client isn't able to deal with it... are you sure the private key is valid, as is associated with the session's configuration? – Attie Mar 5 at 15:55
  • Yes it was working previously, then something changed and now it is not working. – user1004714 Mar 5 at 15:56
  • Is that "something" the session configuration? do you use pagent.exe? Is it running? Can you share a screenshot of the session config?... – Attie Mar 5 at 15:57
  • Not sure exactly what I can share but here is a screenshot of the AWS setup - Link in description above – user1004714 Mar 5 at 16:16
  • I was actually referring to the configuration of the client (i.e: FileZilla / Putty) - feel free to remove the AWS screenshot. – Attie Mar 5 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.