slzdevsnp
10/10/2019 - 4:23 PM

[aws] #cloud #aws

[aws] #cloud #aws

ssh keys on EC2

Amazon EC2 (elastic compute) uses public key crypto to decript/encrypt login info.

The public and private keys are know as key pair.

When a vm instance is launched you specify an existing pair or a new pair that will be created at launch. At boot time,the public key content is palced on the vm intance in ~/.ssh/authorized_keys

creating a key pair using Amazon EC2

from the AWS DOC

  • open EC2 console
  • chose a correct region (e.g. London)
  • under NETWORK & SECURITY select Key Pairs
  • Create Key Pair, specify a keypair name
    • this op generates and offers to download file the your_name_keypair.pem
    • (You'll need to provide the name of your key pair when you launch an instance and the corresponding private key each time you connect to the instance.)
    • chmod 400 my_key_pair_private.pem

A key pair with a specified name and fingerprint appeas in the list of key pairs

From a downloaded yourkeyPair.pem file extract a public key

ssh-keygen -y -f yourkeyPair.pem > yourkeyPair.pub

The public key is shareable with counterparties.

AWS DNS service

AWS route 53 is an authoritative Domain Name System (DNS) service https://console.aws.amazon.com/route53

AWS storage S3

AWS S3 https://s3.console.aws.amazon.com/s3