Configuring EC2 authentication

Within AWS, all AMI Linux images are configured to authenticate any SSH session using a key pair authentication system instead of a password.

Before an EC2 instance is to be launched, AWS prompts us to configure an SSH key pair to be able to connect. We can either create our own SSH key pair or use an existing one:

  1. Let's create a new key pair and name it ubuntukey.
  2. Then, download the key pair and launch the instance. The key pair file we get is ubuntukey.pem. The name of the file will change based on the key name that was provided previously. Ensure that the key file is stored securely. In case the key is lost, ...

Get Hands-On AWS Penetration Testing with Kali Linux now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.