---
title: How to Connect to a Server via SSH from Windows, Mac and Linux
description: "**In short:** SSH is a secure protocol that lets you connect to your server remotely and run commands over an encrypted connection. On Mac or Linux, run ssh user@server-ip in the Terminal; on Windows, use the same command in PowerShell…"
url: "https://www.hyyat.com/en/knowledgebase/how-to-connect-to-a-server-via-ssh/"
updated: "2026-09-29"
category: Server management / servers without control panel
---

# How to Connect to a Server via SSH from Windows, Mac and Linux

**In short:** SSH is a secure protocol that lets you connect to your server remotely and run commands over an encrypted connection. On Mac or Linux, run ssh user@server-ip in the Terminal; on Windows, use the same command in PowerShell or use the PuTTY app.

## What you need

- The server IP address or hostname.
- A username, such as root or your cPanel username.
- A password or an SSH key.
- The SSH port (22 by default, unless it was changed).

## Connect from Mac or Linux

1. Open the **Terminal** app.
2. Type `ssh root@203.0.113.10`, replacing the user and IP with yours. If the port is not 22, add `-p 2222` with your port.
3. The first time, type **yes** to trust the server fingerprint.
4. Enter your password. Nothing appears while you type; that is normal.

## Connect from Windows

**Option 1: PowerShell.** Windows 10 and 11 include an SSH client. Open PowerShell and use the same command: `ssh root@203.0.113.10`.

**Option 2: PuTTY.** Download PuTTY, enter the server IP in *Host Name*, set the port, choose *SSH* and click *Open*. Then log in with your username and password.

## Use SSH keys instead of passwords

SSH keys are safer than passwords. Create a key pair on your computer with `ssh-keygen`, then copy the public key to the server with `ssh-copy-id root@203.0.113.10`. After that you can log in without typing a password.

## Security tips

- Disable password login for root once your key works.
- Consider changing the default SSH port.
- Use a firewall such as CSF to block repeated failed logins.

Prefer not to manage the server yourself? Our [server management](https://www.hyyat.com/en/server-management/) team can secure and maintain it for you.

 **Related guides**

- [1- Introduction to nic teaming and its types](https://www.hyyat.com/knowledgebase/1-%d9%85%d9%82%d8%af%d9%85%d9%87-%d8%b9%d9%86-nic-teaming-%d9%88%d8%a7%d9%86%d9%88%d8%a7%d8%b9%d9%87/)
- [5 Tips to Secure Your cPanel Server](https://www.hyyat.com/knowledgebase/5-%d9%86%d8%b5%d8%a7%d8%a6%d8%ad-%d9%84%d8%aa%d8%a3%d9%85%d9%8a%d9%86-%d8%ae%d8%a7%d8%af%d9%85-cpanel-%d8%a7%d9%84%d8%ae%d8%a7%d8%b5-%d8%a8%d9%83/)
- [2- How to configure nic teaming](https://www.hyyat.com/knowledgebase/2-%d8%b7%d8%b1%d9%8a%d9%82%d9%87-%d8%b9%d9%85%d9%84-configuration-nic-teaming/)

  **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[windows hosting](https://www.hyyat.com/en/windows-hosting/)
