Amazon Web Service (AWS) VPC private subnet instance 'Permission denied (publickey).' - ssh from osx
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
0
I’m connecting to an Amazon Web Service (AWS) EC2 instance in a virtual private server’s private subnet via a NAT instance and getting the following error: Permission denied (publickey) This is happened after I have connected to the NAT and am trying to SSH to the private subnet EC2 instance. Procedure: Define host in ~/.ssh/config with the following : Host my_aws_nat Hostname xx.xx.xx.xx User ec2-user IdentityFile /location/of/my/aws/key_pair.pem ForwardAgent yes SSH to NAT instance via ssh my_aws_nat (which is successful) SSH to instance in private subnet ssh ec2-user@10.0.X.X - which is when I get ...