Skip to content
Advertisement

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

Few months back i have purchased AWS server and created one amazon linux instance(ec2-user) under its one year free subscription (t2-micro). I have been using instance for file input and output operation as well as server configuration via putty and filezilla as well. But recently when i tried connecting it via ppk file it showed me this error in filezilla

Error:  Disconnected: No supported authentication methods available (server sent: publickey)
Error:  Could not connect to server

The same type of error occurred when i tried to connect to via putty also.

I did a workaround about this issue and found so many links but i am not getting how to resolve the issue. Some answer says i need to update the public key over the instance but as i am not able to connect to instance, how that could be done i am not able to understand. At this moment i have only access to my AWS Console account and nothing else.

Any views over this are Welcome…

Advertisement

Answer

Take Snapshot of that machine and convert it as a AMI and upload to your aws console .Then Create new instance using that AMI.

Advertisement