So you’ve just spun up a DigitalOcean Droplet — congratulations. Now comes the part that trips up a lot of beginners: actually getting into it. Whether you’re on Windows, Mac, or Linux, this guide walks you through every method available to connect to your Droplet, step by step, with no assumed knowledge.
By the end, you’ll know how to connect via SSH on any operating system, how to use the browser-based Droplet Console, how to set up SSH key authentication (the right way), and how to troubleshoot the most common connection errors.
💡 What is a Droplet? A Droplet is DigitalOcean’s term for a Linux-based virtual machine (VM) running in the cloud. Once created, it’s essentially a remote server you control entirely — perfect for hosting websites, running applications, or building your digital infrastructure.
What You Need Before Connecting
Before attempting any connection, make sure you have these three things ready:
| What You Need | Where to Find It |
|---|---|
| Droplet’s IP address | DigitalOcean Control Panel → Droplets → your Droplet’s IP Address column |
| Username | root by default on Ubuntu, CentOS, Debian, and Fedora |
| Authentication method | Either your SSH key (recommended) or the root password set during Droplet creation |
Once you have those three pieces of information, you’re ready to connect.
Method 1: Connect via SSH on Mac or Linux
This is the simplest and most common method. Both macOS and Linux come with OpenSSH installed by default, so no extra software is needed.
Step 1: Open Your Terminal
- macOS: Press
Cmd + Space, typeTerminal, and press Enter. Or find it in Applications → Utilities → Terminal. - Linux: Press
Ctrl + Alt + T, or search for Terminal in your applications menu.
Step 2: Run the SSH Command
In your terminal, type the following command — replacing your_ip_address with your Droplet’s actual IP:
ssh root@your_ip_address
Example:
ssh root@203.0.113.45
Step 3: Confirm the Host Key (First-Time Only)
The very first time you connect, SSH doesn’t recognize the server yet, so it asks you to verify:
The authenticity of host '203.0.113.45 (203.0.113.45)' can't be established.
ECDSA key fingerprint is SHA256:IcLk6dLi+0yTOB6d7x1GMgExample...
Are you sure you want to continue connecting (yes/no)?
Type yes and press Enter. Your machine will save this fingerprint for future connections.
Step 4: Authenticate
- If you set up SSH keys: You’ll be connected immediately (or asked for your key passphrase if you set one).
- If you’re using a password: You’ll see a prompt like
root@203.0.113.45's password:. Type your password and press Enter. Note: nothing appears on screen while you type — this is normal.
Step 5: You’re In
Once authenticated, your command prompt changes to something like:
root@ubuntu-droplet:~#
That’s your Droplet’s command line. You now have full control of your server.
Method 2: Connect via SSH on Windows (PowerShell)
Modern Windows 10 and Windows 11 machines come with OpenSSH built in, making this method just as straightforward as on Mac or Linux.
Step 1: Open PowerShell
Press Win + S, search for PowerShell, and open it. No need to run as administrator for basic SSH connections.
Step 2: Check OpenSSH is Installed
Run this quick check:
ssh -V
If you see a version number (e.g., OpenSSH_8.6p1), you’re good to go. If not, install it via Settings → Apps → Optional Features → Add a feature → OpenSSH Client.
Step 3: Run the SSH Command
ssh root@your_ip_address
From here, the process is identical to Mac/Linux — confirm the host key on first connection, then authenticate with your password or SSH key.
💡 Pasting your password in PowerShell: Right-click anywhere in the PowerShell window to paste. Nothing will appear on screen as you type or paste a password — that’s expected behavior.
Method 3: Connect via PuTTY on Windows
PuTTY is a free, open-source SSH client that works well on older Windows systems or if you prefer a graphical interface over the command line.
Step 1: Download and Install PuTTY
Visit the official PuTTY website and download the Windows installer from the Package files list. Install it normally.
Step 2: Open PuTTY and Configure Your Session
- Launch PuTTY from the Start menu.
- In the Host Name (or IP address) field, enter your Droplet’s IP address.
- Make sure Port is set to
22and Connection type is set toSSH.
Step 3: (Optional) Save Your Session
To avoid re-entering these settings every time:
- In the Saved Sessions field, type a name for this connection (e.g., “My Droplet”).
- Click Save.
You can load this saved session in future by selecting it from the list and clicking Load, then Open.
Step 4: Connect
Click Open. PuTTY will open a terminal window. On first connection, it will ask you to verify the host key fingerprint — click Accept.
You’ll then be prompted for your username (root) and password, or authenticated automatically if you’ve configured SSH keys in PuTTY (covered in the SSH key section below).
Method 4: Use the DigitalOcean Droplet Console (Browser)
If you don’t want to deal with SSH at all — or if you’re locked out and can’t connect via terminal — the Droplet Console lets you access your server directly from your web browser.
Requirements
- Your Droplet must be running a supported OS: Ubuntu, Debian, CentOS, or Fedora.
- The Droplet agent must be installed (it’s installed automatically on all Droplets created after August 2021).
- Your cloud firewall must allow SSH traffic.
How to Access the Droplet Console
- Log in to your DigitalOcean Control Panel.
- Navigate to Droplets in the left sidebar.
- Click on the name of your Droplet.
- Click the Console button in the top right of the Droplet’s detail page.
- A terminal window opens directly in your browser — no SSH client, no keys required.
Droplet Console vs. Recovery Console
| Feature | Droplet Console | Recovery Console |
|---|---|---|
| Works when SSH is broken | ❌ No | ✅ Yes |
| Works when Droplet has no network | ❌ No | ✅ Yes |
| Supports copy/paste | ✅ Yes | Limited |
| Authentication | SSH keys or password | Password only |
| Recommended for general use | ✅ Yes | Emergency only |
⚠️ Note: The Droplet Console is not a replacement for SSH for regular use. It’s best treated as a convenient backup access method when you’re away from your usual machine or need quick one-off access.
How to Set Up SSH Key Authentication
Password-based authentication works, but SSH keys are significantly more secure and, once configured, more convenient — no typing passwords every time. DigitalOcean strongly recommends using SSH keys.
Step 1: Generate an SSH Key Pair on Your Local Machine
On Mac, Linux, or Windows PowerShell:
ssh-keygen -t ed25519 -C "your_email@example.com"
This creates two files:
~/.ssh/id_ed25519— your private key (never share this)~/.ssh/id_ed25519.pub— your public key (this goes on the server)
When prompted, you can press Enter to use the default file location. You can also set a passphrase for extra security (recommended).
🔐 Older systems: If ed25519 isn’t supported, use
ssh-keygen -t rsa -b 4096instead.
Step 2: Copy Your Public Key to DigitalOcean
Option A — Add during Droplet creation (easiest):
- In the DigitalOcean Control Panel, during Droplet setup, scroll to the Authentication section.
- Click New SSH Key.
- Open your public key file and copy its entire contents:
cat ~/.ssh/id_ed25519.pub
- Paste it into the DigitalOcean dialog and give it a name.
- Click Add SSH Key — it will now be automatically installed on any new Droplets you create.
Option B — Add to an existing Droplet manually:
SSH into your Droplet using a password, then run:
mkdir -p ~/.ssh
nano ~/.ssh/authorized_keys
Paste your public key on a new line, save the file (Ctrl + X, then Y, then Enter), and set the correct permissions:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
Step 3: Test the Key-Based Connection
ssh root@your_ip_address
If your key is configured correctly, you’ll connect without being asked for a password.
Connecting with a Specific SSH Key
If you have multiple SSH keys on your machine (common for developers managing several servers), specify which one to use with the -i flag:
ssh -i /path/to/your/private_key root@your_ip_address
Example:
ssh -i ~/.ssh/digitalocean_key root@203.0.113.45
Using an SSH Config File (Recommended for Multiple Droplets)
Instead of typing long commands every time, you can configure SSH shortcuts. Open or create the file ~/.ssh/config and add:
Host my-droplet
HostName 203.0.113.45
User root
IdentityFile ~/.ssh/digitalocean_key
Now you can connect simply by typing:
ssh my-droplet
This is particularly useful if you’re managing multiple Droplets across client projects.
Common Connection Errors & Fixes
❌ “Connection refused”
Cause: SSH daemon isn’t running, the port is blocked, or the IP is wrong.
Fixes:
- Double-check your Droplet’s IP address in the Control Panel.
- Verify the Droplet is powered on (check the Droplet status in the Control Panel).
- If you’ve changed the SSH port from 22, specify it:
ssh -p YOUR_PORT root@your_ip_address - Check your DigitalOcean Cloud Firewall rules — make sure port 22 (or your custom SSH port) has an inbound allow rule.
❌ “Permission denied (publickey)”
Cause: SSH key mismatch or the public key isn’t on the server.
Fixes:
- Confirm the public key is in
~/.ssh/authorized_keyson the Droplet. - Verify you’re using the correct private key:
ssh -i ~/.ssh/correct_key root@your_ip_address - Check file permissions on the Droplet:
~/.sshshould be700,authorized_keysshould be600.
❌ “WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!”
Cause: The Droplet was rebuilt, restored from a snapshot, or the IP was reassigned to a new Droplet. Your machine’s saved fingerprint no longer matches.
Fix: Remove the old fingerprint and reconnect:
ssh-keygen -R your_ip_address
Then try connecting again and accept the new fingerprint.
❌ “ssh: connect to host X port 22: Operation timed out”
Cause: Network issue, firewall blocking traffic, or the Droplet is unreachable.
Fixes:
- Check if the Droplet is online in the DigitalOcean Control Panel.
- Review your Cloud Firewall settings — ensure TCP port 22 is allowed for your IP or all IPs.
- Try the browser-based Droplet Console as a fallback.
❌ Password Not Accepted on First Login
Fixes:
- Make sure you’re entering
rootas the username. - Check your email — DigitalOcean sometimes sends a one-time password for new Droplets that must be changed on first login.
- If all else fails, reset your root password via the Access tab on your Droplet’s page in the Control Panel.
What to Do After Connecting
Once you’re successfully connected to your Droplet, here are the first things you should do — especially on a fresh server:
1. Update System Packages
apt update && apt upgrade -y # Ubuntu / Debian
yum update -y # CentOS / Fedora
2. Create a Non-Root User
Running everything as root is a security risk. Create a regular user with sudo privileges:
adduser your_username
usermod -aG sudo your_username
3. Copy SSH Keys to the New User
rsync --archive --chown=your_username:your_username ~/.ssh /home/your_username
4. Disable Root SSH Login (Optional but Recommended)
Once you’ve confirmed your new user can SSH in successfully, disable root login:
nano /etc/ssh/sshd_config
Find PermitRootLogin yes and change it to PermitRootLogin no. Save and restart SSH:
systemctl restart ssh
5. Set Up a Firewall
Enable UFW (Uncomplicated Firewall) to control what traffic reaches your Droplet:
ufw allow OpenSSH
ufw enable
🌐 Building something on your Droplet? Whether you’re hosting a website, web app, or a client project, having a solid technical foundation is only half the work. Our website development services and search engine optimization services help you build a presence that gets found and converts visitors into customers.
Final Thoughts
Connecting to a DigitalOcean Droplet is genuinely straightforward once you know the steps — and it gets faster every time. Here’s a quick recap of your options:
| Method | Best For | Requires |
|---|---|---|
| SSH on Mac/Linux | Most users, daily use | Terminal (built-in) |
| SSH on Windows (PowerShell) | Windows 10/11 users | PowerShell (built-in) |
| PuTTY on Windows | Older Windows, GUI preference | PuTTY (free download) |
| Droplet Console (Browser) | Quick access, locked-out recovery | DigitalOcean account |
For day-to-day use, SSH with key-based authentication is the gold standard — it’s faster, more secure, and eliminates the risk of brute-force password attacks. Set it up once and you’ll never think about it again.
If you’re using your Droplet to power a business website or web application, remember that a well-configured server is just the beginning. Driving traffic, ranking on Google, and turning visitors into leads requires a proper digital strategy — from SEO content writing and technical SEO to content marketing and social media management that keeps your brand visible. The infrastructure you’ve set up is the foundation — what you build on top of it is what creates real business value.
Have questions about setting up or optimizing your web infrastructure? Get in touch with the Macroter team — we help businesses build, grow, and market their digital presence.

I’m Md Nasir Uddin, a digital marketing consultant with over 9 years of experience helping businesses grow through strategic and data-driven marketing. As the founder of Macroter, my goal is to provide businesses with innovative solutions that lead to measurable results. Therefore, I’m passionate about staying ahead of industry trends and helping businesses thrive in the digital landscape. Let’s work together to take your marketing efforts to the next level.