liveBook · Manning

Public-private key pair

As explained in Amazon Web Services in Action, Third Edition: An in-depth guide to AWS

A key pair is a matching public key and private key used for asymmetric authentication to a system.

A public-private key pair is a matching credential set used for asymmetric authentication. AWS can use a key pair to authenticate an administrator logging in to an EC2 Linux machine. section 3.1.1

When launching an EC2 instance, consider these operational properties:

  • A configured key pair supports login, but the approach works only for a single user and cannot be changed externally after launch. section 3.1.1
  • You can launch without a key pair and use AWS Systems Manager Session Manager, which uses temporary key pairs instead. section 3.1.1 section 3.1.2
  • Session Manager avoids requiring inbound SSH or RDP connectivity, reducing the instance’s attack surface. section 3.1.2

Launching an EC2 instance without a key pair

During the EC2 launch wizard, select Proceed without a Key Pair, deselect Allow SSH Traffic, attach an IAM role for Systems Manager, and connect later through the Session Manager tab. section 3.1.1 section 3.1.2

Figure 3.6 Proceeding without a key pair

Use the launch-wizard figure to locate the option for proceeding without a key pair. section 3.1.1

How Amazon Web Services in Action, Third Edition: An in-depth guide to AWS covers it

How deep it goes
Defines the credential and explains its single-user limitation, but stops short of cryptographic mechanics.
Examples
Demonstrates proceeding without a key pair and connecting to an EC2 instance through Session Manager.
What it assumes
Assumes basic administrator authentication knowledge and teaches the EC2 launch and connection choices from the beginning.
What you can do after
Operate/configure EC2 access by choosing a key pair or replacing it with temporary Session Manager credentials.
How it connects
Connects public-private key pairs with EC2, SSH, RDP, IAM roles, and Systems Manager Session Manager.

Also explained in

Compare how 6 books explain public-private key pair →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Amazon Web Services in Action, Third Edition: An in-depth guide to AWS. The section links point to the parts of the book it draws on.