+5 votes
2k views
by (40.6k points)
I have an instance of an application running on Amazon EC2 cloud instance and need to connect from my local Ubuntu. It works well in one of portable and home ubuntu. I received message "Permission denied (publickey)" when trying to access SSH to EC2 in another local Ubuntu. It's so strange to me.

I'm thinking about any problems with the security settings on the Amazon EC2 has limited access to an instance of IPs or certificate necessary to regenerate.

Does anyone know a solution?

1 Answer

+3 votes
by (40.6k points)

The first thing to do in this situation is to use ssh -v option so you can see what type of authentication is tested and what the result. Does it help to clarify the situation?

In its update to your question, you mention "another local Ubuntu". Have you copied the ssh private key to another machine?

6.5k questions

8.2k answers

191 comments

71 users

Please leave a comment if the solution works or not.
(with device model) [X]Close
Ask a Question
Welcome to Wikiwhy Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...