Ganesh Chavan
Ganesh Chavan

Reputation: 23

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?

Upvotes: 0

Views: 1448

Answers (2)

Chandrakant Patil
Chandrakant Patil

Reputation: 11

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

Upvotes: 1

Ganesh Chavan
Ganesh Chavan

Reputation: 23

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

Upvotes: 0

Related Questions