I searched google and found many answers but none seem to be fixing the error.
I am getting this error, while connecting to amazon ec2
server refused key no supported authentication methods available (Server sent public key)
I had created one private key when I was sitting at home, with Pem file when I went to office again I created another private key and tried to connect to my ec2 account and it gave me an error.
Please tell me how I can fix this error.