Deploy Ubuntu Server with Python3.9
From subscribing on AWS Marketplace to a running, secured instance — plus day-2 operations.
Operating system
Ubuntu 22.04 LTS
SSH user
ubuntu
This guide covers launching and using Ubuntu Server with Python3.9 from AWS Marketplace.
Prerequisites
- An AWS account with permission to subscribe to Marketplace products and launch EC2 instances.
- An EC2 key pair for administrative access.
Step 1 — Subscribe & launch
- On the AWS Marketplace listing, choose Continue to Subscribe → Continue to Configuration → Continue to Launch.
- Select an instance type and your key pair.
- Configure the security group (see the ports below) and launch.
Step 2 — Security group / ports
Open port 22 (SSH) restricted to your IP, plus any application ports.
Step 3 — Connect
ssh -i "your-key.pem" ubuntu@<PUBLIC_IP>
If you get a key-permission error: chmod 400 your-key.pem.
Step 4 — Access the application
To verify the installation, follow the below instructions
Step 1. Connect to SSH
In a terminal window, use the ssh command to connect to the instance. You specify the user name for your instance, and the public DNS name or IPv6 address for your instance, the path and file name of the private key (.pem).
ssh ubuntu@publicIP -i [Path of key pair file]
If it shows access denied message run the following command, then run the above command again to connect via ssh.
chmod 400 [Path of key pair file]
Step 2. Verify the installation
Follow the steps to verify the python3.9 installation
- Open command prompt
- Type the below command
python --version
- Now run the command to test python commands
sudo python
- Now run below command
print('Hello')
You will get the output as ‘Hello’. This means Python3.9 is installed and configured properly.
Screenshots

Day-2 operations
Apply OS and package security updates on your normal cadence, snapshot the EBS volume for recovery, and forward logs/metrics to CloudWatch.
Support
Email support@ioanyt.com for help.