Logo

Cloud Bootcamp 2025

Welcome! This page contains all the terminal commands and code snippets you'll need for the cloud bootcamp presentation.

How to use this page:

Praesent tempus erat eu tellus bibendum varius. Phasellus nec tortor sed lacus molestie pretium sed vestibulum massa:

Generate SSH keys: MacOS

Step 1: Check if you already have SSH keys

First, let's check if you already have SSH keys on your Mac. Open Terminal (Applications > Utilities > Terminal) and run:

ls -la ~/.ssh

If you see files named id_rsa and id_rsa.pub (or similar), you already have SSH keys and can skip to using them. If you get "No such file or directory" or don't see these files, continue to Step 2.

Step 2: Generate a new SSH key

In Terminal, paste the following command:

ssh-keygen -t rsa

Step 3: Save the key

When prompted "Enter a file in which to save the key," just press Enter to use the default location.

Step 4: Set a passphrase (optional but recommended)

You'll be asked to enter a passphrase. You can either:

Step 5: View your public key

To see your new public key (which you'll need to copy and share), run:

cat ~/.ssh/id_rsa.pub

Copy the entire output - this is your public key that you will need to paste into the UpCloud control panel.

Note: Never share your private key (id_rsa without the .pub extension)!

Generate SSH keys: Windows - PuTTY

Step 1: Check if you already have SSH keys

Look in your Documents folder or Desktop for files ending in .ppk (PuTTY private key files). If you find any:

If you don't find any .ppk files, continue to Step 2 to generate new keys.

Look in your Documents folder or Desktop for files ending in .ppk (PuTTY private key files). If you find any, you may already have SSH keys set up.

Step 2: Open PuTTYgen

Download and install PuTTY from putty.org if you haven't already. Then open PuTTYgen (it comes with PuTTY installation).

Step 3: Generate a new SSH key

In PuTTYgen:

Step 4: Set a passphrase (optional but recommended)

In the "Key passphrase" field, you can either:

If you enter a passphrase, repeat it in the "Confirm passphrase" field.

Step 5: Save your keys

Click "Save private key" and save it somewhere safe (like Documents folder) with a .ppk extension.

Step 6: Copy your public key

In the "Public key for pasting into OpenSSH authorized_keys file" box, select all the text and copy it. This is your public key that you will need to paste into the UpCloud control panel.

Note: Keep your .ppk file safe and never share it with anyone!

Generate SSH keys: Windows - Termius

Aliquam finibus enim nec consequat sagittis. Cras sodales consequat est, eget auctor tortor porta at. Donec et venenatis ante. Quisque vulputate tincidunt blandit. Praesent at metus ut lorem pharetra pellentesque.

Suspendisse urna sapien, tristique vel hendrerit sit amet, tempus eu turpis. Vestibulum suscipit gravida quam, vitae tristique leo sagittis non. Nullam lobortis maximus pharetra. Praesent tempus erat eu tellus bibendum varius. Phasellus nec tortor sed lacus molestie pretium sed vestibulum massa.


     function helloWorld() {
     console.log('Hello, world!');
     }
     

function helloWorld() {
console.log('Hello, world!');
}
    

Nam maximus ultricies sapien, nec tincidunt lectus lobortis id. Aenean suscipit sapien quis laoreet finibus. Sed ut lorem sed tortor varius sagittis. Sed sagittis eros vel justo ultricies, eu tempus leo aliquet. Mauris tristique vestibulum libero, quis elementum lectus aliquam eget. Etiam at dictum eros.