How do I connect to my cloud server via SSH from Windows or Mac?

SSH into your cloud server with PowerShell on Windows or Terminal on Mac: first login, an ed25519 key, a shortcut in ~/.ssh/config and how to fix common errors.

To SSH into a cloud server from Windows or Mac, you only need its IP, a user (usually root) and a terminal: on Windows 10 and 11 open PowerShell, on Mac open the Terminal app, and type ssh root@YOUR_IP. The first time, you accept the server's fingerprint and log in with your password; after that, switch to an SSH key, which is safer and saves you from typing the password every time.

What you need before you start

  • The server's IP. On a Dongee Cloud server, each server has a dedicated IP; have it at hand before you connect.
  • The login user and password. Dongee Cloud gives you root access over SSH. If you can't find your login details, ask 24/7 support for help.
  • A terminal. Windows 10 and 11 already include the OpenSSH client, and so does macOS. In most cases there's nothing to install.
  • The port. SSH uses port 22 by default. If you changed it, pass it with -p.

Step 1: connect from Windows (PowerShell)

  1. Open the Start menu, type PowerShell and open it (you don't need to run it as administrator).
  2. Check that you have the client: type ssh -V. If it replies with an OpenSSH version, you're set.
  3. Connect:
ssh root@203.0.113.10

Replace 203.0.113.10 with your server's IP.

  1. The first time, you'll see a message like "The authenticity of host … can't be established". Type yes and press Enter: your computer saves the server's fingerprint so it recognizes it next time.
  2. Type the password. Nothing shows on screen while you type; that's normal. Press Enter.

If the ssh command doesn't exist on your Windows, turn on "OpenSSH Client" in Settings, under the system's optional features. PuTTY is a classic alternative, but today the built-in terminal is enough.

Step 2: connect from Mac (Terminal)

  1. Open Terminal (Applications > Utilities, or search "Terminal" with Spotlight).
  2. Type ssh root@203.0.113.10 with your server's IP.
  3. Accept the fingerprint with yes the first time and type the password.

If you use another port: ssh -p 2222 root@203.0.113.10. To leave the server, type exit.

An SSH key replaces the password with a pair of files: a private one that never leaves your computer and a public one that you copy to the server.

  1. Create the key on your computer (works the same in PowerShell and in Mac Terminal):
ssh-keygen -t ed25519 -C "your-email@yourdomain.com"

Accept the default location and, if you want, add a passphrase.

  1. Copy the public key to the server.

On Mac:

ssh-copy-id root@203.0.113.10

On Windows (PowerShell doesn't include ssh-copy-id):

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@203.0.113.10 "mkdir -p ~/.ssh && chmod 700 ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 600 ~/.ssh/authorized_keys"
  1. Try ssh root@203.0.113.10 again: it shouldn't ask for the server password anymore.

Step 4: save a shortcut in ~/.ssh/config

So you don't have to remember the IP, create or edit the ~/.ssh/config file (on Windows it's at C:\Users\YOUR_USER\.ssh\config):

Host my-server
    HostName 203.0.113.10
    User root
    Port 22
    IdentityFile ~/.ssh/id_ed25519

From then on, ssh my-server is enough.

Common errors and how to fix them

MessageLikely causeWhat to do
Connection timed outWrong IP, a different port or a firewall blocking port 22Check the IP and port; if you set up a firewall, confirm it allows SSH
Connection refusedThe SSH service isn't listening on that portTry the correct port with -p or check the service from the console
Permission denied (publickey,password)Wrong user, password or keyCheck the user (root or another) and that the public key is in authorized_keys
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGEDYou reinstalled the server or the IP now belongs to another machineIf you know you reinstalled, remove the old fingerprint with ssh-keygen -R 203.0.113.10 and connect again

Security best practices

  • Once the key works, turn off password login in the SSH service configuration file, sshd_config (option PasswordAuthentication no), and restart the SSH service. Do it with a second session open in case something fails.
  • Create your own user with sudo for day-to-day work instead of always working as root.
  • Turn on a firewall (for example ufw on Ubuntu) and leave open only the ports you use.
  • Never share your private key (id_ed25519); only the .pub file is shared.

SSH on a cloud server, in cPanel or on Dongee Live: which is your case?

If you have…How you get inComment
A Dongee Cloud serverSSH as root with this guideFull control: install Docker, Python, databases or whatever you need. You manage the server, with 24/7 support
Shared hosting with cPanelcPanel's built-in terminalYour account user, without root. See how to use the cPanel SSH terminal
An AI-built app on Dongee LiveYou don't need SSHYou publish from your AI tool or from GitHub; Live, Dongee's platform for publishing AI-built apps, runs the server for you

If you don't have a server yet, Dongee Cloud runs from Cloud 1 to Cloud 7 (17 to 1,088 USD/month) with Intel Xeon processors, NVMe drives and deployment in under 3 minutes; with Cloud On Demand you choose vCPU, RAM and disk separately, from 17 USD/month. A cloud server isn't the right fit if you don't want to manage Linux: in that case, hosting with cPanel or Dongee Live saves you that work.

Frequently asked questions

Do I need to install PuTTY on Windows?

Not on up-to-date Windows 10 and 11: the OpenSSH client is included and works from PowerShell or Windows Terminal. PuTTY is still a valid option if you prefer it.

Why does nothing show when I type the password?

It's a terminal security measure: it shows no characters or asterisks. Type it in full and press Enter.

Can I use the same SSH key on several servers?

Yes. Copy the same public key to each server. If you ever think your computer was compromised, generate a new key and remove the old one from authorized_keys on all of them.

What do I do after connecting?

The usual first steps are updating the system and setting up your tools. If you're going to use containers, follow the guide to install Docker on Ubuntu; to review basic commands, see what the Linux shell is.

I locked myself out by turning off the password. What do I do?

Contact Dongee support, available 24/7 in your language (the platform translates on the fly), and explain what you changed. That's why you should always test the key in a second session before closing the first one.

With the IP, a terminal and an SSH key, you have secure access to your server in minutes from Windows or Mac. If you then want to set up something specific, such as n8n with Docker Compose, you already have the foundation.

Comenta lo que quieras

Unete a la charla
Solo ingresa tu email