SSH and AWS LightSail

For a side project I need a simple server, so i choosed an AWS LightSail Linux Server. I installed the Amazon Linux distribution, then using the web ssh console, I installed MongoDB, Golang and other tools that I need. The problem is started when I have to move data on this server, using the command:

ssh -i mykey.pem ec2-usr@ipaddress

Give me this error:

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

In the end, I resolved to copy my local public ssh key in the .ssh/authorized_keys file on the server.

I wrote the key making a copy and paste using the web ssh console from the AWS LightSail console.

Honestly, I like the AWS product but in this case, I’m a bit disappointed because making what is wrote in the documentation don’t resolve the problem.

share this post with friends

Picture of Nicola De filippo

Nicola De filippo

I'm a software engineer who adds to the passion for technologies the wisdom and the experience without losing the wonder for the world. I love to create new projects and to help people and teams to improve

1 comment

  1. Its like you read my mind! You appear to know a lot about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but other than that, this is magnificent blog. An excellent read. I’ll definitely be back.

Leave a comment

Your email address will not be published. Required fields are marked *

Who I am

I'm a software engineer who adds to the passion for technologies the wisdom and the experience without losing the wonder for the world. I love to create new projects and to help people and teams to improve.

Follow Me Here

Get The Latest Updates

Periodically receive my super contents on coding and programming

join the family;)

Recent Posts