Jeevan Dongre
Jeevan Dongre

Reputation: 4649

permission denied (public key issue)

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

Answers (1)

Sanket Dangi
Sanket Dangi

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

Related Questions