0
votes

this is probably a simple stupidly question :)

I've created a new windows instance on Amazon EC2, and also downloaded the .pem file to SSH.

with cygwin

 $ ssh -i mykey.pem [email protected]
    [email protected]'s password:
    Permission denied, please try again.

permission set to 400 for mykey.pem file.

$ chmod 400 mykey.pem

I also tired with the putty by creating mykey.ppk file form mykey.pem with puttygen but getting access denied error :(

 Using username "Administrator".
 Authenticating with public key "imported-openssh-key"
 Server refused public-key signature despite accepting key!
 [email protected]'s password:
 Access denied

dont know what kind of silly mistake im making here! Please guys do u have any suggestion here?

2
If you create a fresh test EC2 instance and follow this guide, are you able to connect?Martin Prikryl
The "Server refused public-key signature despite accepting key!" message sounds bad, you should never get this.Martin Prikryl
thanks guys!! problem solved. it was a firewall issue!!user5276419
Please post your solution as an answer.Martin Prikryl

2 Answers

0
votes

SSH port on EC2 server were not open to incoming traffic.

0
votes

Following are the most possible reasons-

  1. Port 22 is not open while creating EC2 instance
  2. Firewall configuration on your local machine(just try disconnecting VPN)
  3. AWS account is suspended due to pending bill payment