SS2 authentication SS2

I installed an ec2 instance. In the security group, I opened SSH 'tcp' port 80 for 0.0.0.0/0 (all open for testing). I associated the instance with the private key. I downloaded the key and passed it during ssh-ing, but RSA is not authenticated. Any ideas?

ssh -i mykey.pem root@mydnsinfo.amazonaws.com The authenticity of host 'mydns.amazonaws.com(IP)' can't be established. RSA key finger print is FINGERPRINT Are you sure you want to continue connecting (yes/no)? 

Thanks in advance!

+4
source share
2 answers

This is normal. Your SSH complains about an unknown host key. This always happens the first time you connect to a new host. Just say yes, connect and try again. He should not complain a second time.

The private secret key for your root account is not for the entire host.

+5
source

Reliably configured instances of EC2 will include the SSH fingerprint on the server console output , which you can get via SSL before trying to connect through SSH.Then when you connect via SSH, you need to make sure the fingerprint matches the console. You MUST do this in order to be able to securely connect to public EC2 instances.

Open EC2 instances generate a new server SSH key at each boot. This means that if you do not do what I described above, you will encounter an unknown warning of the master key, and if you ignore this warning, you will throw protection from the door; you just don’t know what you will be connecting to.

+5
source

Source: https://habr.com/ru/post/1302835/


All Articles