liveBook · Manning

SSH

As explained in Build Python Web Apps with Streamlit

SSH is a secure network protocol for authenticated and encrypted command-line access to a remote computer.

SSH, or Secure Shell, opens a secure terminal session on a remote computer. During deployment, it lets you connect from your local machine to the EC2 instance running an application, where you can enter commands and investigate problems. section 12.3.6

SSH protects the session through two related functions:

  • Authenticates you with public-key cryptography: the remote server receives a public key, while your private key remains secret on your machine. section 12.3.6
  • Encrypts the connection so commands and session data remain protected while traveling between the two computers. section 12.3.6
  • Provides direct access useful for diagnosing problems that cannot be investigated through the deployment interface alone. section 12.3.6

Create an Elastic Beanstalk key pair

When Elastic Beanstalk asks whether to set up SSH, answer yes, provide a keypair name such as aws-eb, and create a passphrase when prompted. The CLI generates the key pair and uploads the public key to EC2; keep the private key secret.

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains remote sessions, authentication, and encryption, but defers the theory of public-key cryptography.
Examples
Demonstrates Elastic Beanstalk SSH setup, RSA key-pair generation, passphrase entry, and public-key upload.
What it assumes
Assumes local and remote computers plus Elastic Beanstalk setup, while explaining SSH access from the underlying security purpose.
What you can do after
Diagnose and troubleshoot deployed applications by accessing their remote EC2 terminal securely.
How it connects
Connects public-key cryptography with EC2 instances and Elastic Beanstalk deployment.

Also explained in

Compare how 4 books explain SSH →

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.