You're viewing a comment by Dennis and its responses.

Dennis Permalink
December 17, 2010, 14:30

Trying to use the basic ssh command on ec2 (ubuntu image) but getting a "Permission denied (publickey)" error.
Any tips on what the problem is?
Actually, i tried it on my own ubuntu machine (linux via virtualbox) and got the same error.
I did not see other comments reporting this type of error so not sure what to do next.

Comment Responses

jack Permalink
February 05, 2013, 03:54

you need to initiate the ssh connection on the localhost using the .pem certificate just like you connect to the ec2 server

Davoud Permalink
June 19, 2013, 09:30

ssh -f -N -D 0.0.0.0:1080 -i keyfile.pem localhost

(Make sure its access privilege is 0600)

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "cdrom_216": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.