Setting up AWS EC2 with Ubuntu, Docker, and a Public IP

Follow these steps to quickly set up a basic server environment on Amazon Cloud (AWS).

Step 1: Log in to AWS Console

Step 2: Create an EC2 Instance

Step 3: Select Ubuntu Server

Step 4: Configure Security Settings

Step 5: Connect to Your Instance

Step 6: Access Your Instance via SSH

chmod 400 your-key.pem
ssh -i your-key.pem ubuntu@public-ip-address

Step 7: Install Docker on Ubuntu

Follow Ubuntu | Docker Docs

You’re all set!

You now have:

 


Secure Base64 Encoding via Linux Console

Step 1: Open your Linux terminal.

Step 2: Execute the following command (replace api_key and secret_key with your real keys):

echo -n "api_key:secret_key" | base64

Example:
If your keys are:

Then run:

echo -n "abc123:xyz789" | base64

Output will look like:

YWJjMTIzOnh5ejc4OQ==


How it works securely:

You can then safely use this encoded string as your Basic Auth token:

Authorization: Basic YWJjMTIzOnh5ejc4OQ==

 


Revision #1
Created 21 May 2025 12:31:40 by Sergei Osipov
Updated 21 May 2025 12:36:08 by Sergei Osipov