liveBook · Manning

Public key cryptography

As explained in Build Python Web Apps with Streamlit

Public-key cryptography is a cryptographic technique that uses mathematically related public and private keys for secure authentication or communication.

Public-key cryptography secures SSH access with two mathematically related keys: keep the private key secret on your machine and place the matching public key on the server. The server verifies your identity without seeing the private key, helping keep the connection authenticated and encrypted. section 12.3.6

Creating an SSH key pair

During Elastic Beanstalk initialization, choose SSH setup, name the key pair, and optionally enter a passphrase. The EB CLI generates the pair locally and uploads only the public key to EC2. AWS later checks that you possess the private key before allowing access.

How Build Python Web Apps with Streamlit covers it

How deep it goes
Defines the key roles and security benefit, then demonstrates setup, but defers the underlying theory and SSH connection procedure.
Examples
Uses EB CLI prompts to generate an RSA key pair and upload its public portion to AWS.
What it assumes
Assumes a need for SSH access but teaches the private-key and public-key roles from the beginning.
What you can do after
Operate Elastic Beanstalk initialization to create and register an SSH key pair for later EC2 access.
How it connects
Connects SSH with private keys, public keys, EC2 instances, and Elastic Beanstalk deployment.

Also explained in

Compare how 5 books explain public key cryptography →

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.