S
S
Semen553382016-08-09 17:28:04
SSH
Semen55338, 2016-08-09 17:28:04

How to use your ssh public key to login to AWS?

I use my ~/.ssh/id_rsa.pub to login to different servers.
Registered on Amazon AWS it offers to generate a new key and connect via
ssh -i new_key.pem , but I want to use my key from ~/.ssh/id_rsa.pub so as not
to specify additional parameters.
I added the contents of my id_rsa.pub via Import Key Pair to the EC2 Management Console when I connect, it says Permission denied (publicly).
Generated a new key in the EC2 Management Console saved it as ~/.ssh/id_rsa.pub - Permission denied (publickey)
again

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2016-08-09
@Semen55338

Your key must be imported to AWS before creating an instance. For a previously created server, it will not be added, you need to manually log in to the server in another way and add the key to the user's /.ssh folder

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question