|
I have followed the official tutorial exactly, but I keep getting the "Server refused our key" error. These are the exact steps I am taking: 1) Create new keypair, save as <keypair>.pem 2) Open puttygen 3) Conversions -> Import Key -> select <keypair>.pem (This is the only deviation from official tutorial, but same issue happens with Load -> select <keypair>.pem) 4) Click the Save Private Key button -> click yes -> save as <keypair>.pkk 5) Open Putty 6) Copy public DNS name of instance to Host Name box (port = 22) 7) SSH -> Auth -> Browse -> select <keypair>.pkk 8) Open SSH session 9) Enter "ec2-user" for user name Then I hit the "Server refused our key" error. Am I doing something wrong here?
|
# ? Apr 19, 2016 16:59 |
|
|
# ? Apr 24, 2024 12:50 |
|
Verify puttygen created an SSH-2 RSA key as well as the username you should be using, depending on the instance type it may not be "ec2-user".
|
# ? Apr 19, 2016 23:50 |
|
I was using SSH-2 RSA, and ec2-user is the correct username for an Amazon Linux AMI. Also, it worked this time. I'll take it.
|
# ? Apr 21, 2016 02:48 |