Skip to main content

Creating and Connecting to Your First Linux Server

Spin up an Ubuntu 24.04 Linux server in the cloud, configure SSH key authentication, and learn to navigate your new server. This exercise uses DigitalOcean but the steps work with any cloud provider.

Need a server? Get $200 free credits on DigitalOcean
beginner
cloud
Linux
30 minutes
7 steps
Prerequisites
  • A computer with a terminal (macOS, Linux, or Windows with WSL)
  • A cloud server (we use DigitalOcean in this exercise, but any Ubuntu 24.04 server works)
  • Basic familiarity with typing commands in a terminal

You need a Linux server to follow along. Any cloud provider works, but we recommend DigitalOcean for its simple interface and fast setup.

Get $200 in free credits to get started.

Get Started with DigitalOcean

Disclosure: This is an affiliate link. We may earn a commission at no extra cost to you.

Learning Objectives
  • Create a cloud Linux server running Ubuntu 24.04
  • Generate and configure SSH keys for secure access
  • Connect to a remote server via SSH
  • Navigate the Linux filesystem and run basic commands
  • Understand the difference between root and regular user access
Technologies Used
Ubuntu 24.04
SSH
DigitalOcean
Exercise Steps
1

Generate an SSH Key Pair

Current

Before creating a server, generate an SSH key pair on your local machine. This lets you log in securely without a password.

2

Create an Ubuntu 24.04 Droplet

Log in to DigitalOcean, add your SSH public key, and create a new droplet. Choose Ubuntu 24.04 LTS as the image. A Basic plan with 1 GB RAM and 1 vCPU ($6/month) is enough for learning. Pick the datacenter region closest to you.

3

Connect to Your Server via SSH

Use SSH to connect to your new droplet. Replace the IP address below with the one shown in your DigitalOcean dashboard.

4

Explore Your Server

Run some basic commands to understand what you are working with. Check the OS version, available resources, and disk space.

5

Navigate the Linux Filesystem

Learn to move around the filesystem, list files, and understand the directory structure of a Linux server.

6

Update the System Packages

Always update your server packages right after creating it. This ensures you have the latest security patches.

7

Install Essential Tools

Install a few commonly used tools that are not included by default. These will be useful throughout the rest of this series.

Found an issue?