liveBook · Manning

Public-private key pair

As explained in Build Python Web Apps with Streamlit

A key pair is a matched private key and public key used for asymmetric authentication.

A public-private key pair supports secure SSH access to a remote computer. The private key stays on your local machine and must remain secret; the matching public key is placed on the remote server. The server verifies that you possess the private key without receiving it, authenticating your identity while keeping the session encrypted. section 12.3.6

Creating a key pair with the EB CLI

When initializing an Elastic Beanstalk application, choose SSH setup, accept or enter a key-pair name, and optionally provide a passphrase. The EB CLI generates the pair locally and uploads only the public key to EC2. AWS then checks for the corresponding private key when you connect. section 12.3.6

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains local and remote key roles, but defers public-key cryptography theory and detailed SSH connection instructions.
Examples
Uses an EB CLI initialization transcript showing RSA generation, passphrase entry, and public-key upload.
What it assumes
Assumes a local machine, a remote EC2 instance, and basic Elastic Beanstalk initialization; teaches key roles from the beginning.
What you can do after
Operate SSH setup through the EB CLI while keeping the private key secret and uploading only its public counterpart.
How it connects
Connects asymmetric authentication with SSH, public-key cryptography, EC2, and Elastic Beanstalk.

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 Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.