server refused key no supported authentication methods available EC2

Discussion in 'Site & Server Administration' started by neeshu, Mar 22, 2016.

  1. #1
    Hi,
    I was trying to connect to amazon ec2

    I had created one private key .ppk when I was sitting at home, with Pem file then when I went to office again I created another private key .ppk and tried to connect to my ec2 account and it gave me an error.

    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)


    Please tell me how I can fix this error.
     
    neeshu, Mar 22, 2016 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Uhm... a public key is connected to ONE private key - use the same private key both places?
     
    PoPSiCLe, Mar 24, 2016 IP