Permission denied (publickey). SSH from local Ubuntu to Amazon EC2 server

The first thing to do in this situation is to use the -v option to ssh, so you can see what types of authentication is tried and what the result is. Does that help enlighten the situation?

In your update to your question, you mention “on another local Ubuntu”. Have you copied over the ssh private key to the other machine?

Leave a Comment