Reputation: 4649
I have created an instance of amazon unix/linux on aws ec2, when i tried to access my instance from my ubuntu console I am getting an error "ssh -i mpigeon.pem ec2-50-17-134-152.compute-1.amazonaws.com Permission denied (publickey)."
What is the issue how do I resolve it
Upvotes: 0
Views: 2623
Reputation: 1195
You need to mention the user name while login into instance.
ssh -i mpigeon.pem [email protected]
If you are using ubuntu instance, default user in ubuntu. Replace root user with ubuntu user else for centos and fedora, default user is root only.
Upvotes: 5