Search code examples
sshamazon-ec2cygwinputty

Trying SSH into an Amazon EC2 instance(windows server2012) from windows 7 - permission denied


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?


Solution

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