# Connect to Your VPS/VDS via SSH (Windows, macOS, Linux)

https://voligen.com/en/knowledgebase/article/connect-to-vps-via-ssh

SSH (Secure Shell) gives you encrypted command-line access to your server. This guide walks you through connecting to your VDS from Windows, macOS and Linux.

![SSH opens an encrypted tunnel between the terminal on your computer and your server.](https://voligen.com/templates/website/Voligen/assets/images/kb/vps-vds-ssh-baglanti.svg)

## Before you start

- **Server IP address**: you will find it in your service activation email or in the service details of your server under **Client area > My services**. This guide uses `203.0.113.10` as an example.
- **Username and password**: on Linux servers this is usually `root`. The password is in the same activation email or service details page.
- **SSH port**: 22 by default. If you have changed it yourself, use your custom port.
- An SSH client. Windows 10/11, macOS and Linux all ship with the OpenSSH client built in.

## Connecting step by step

1. **Open a terminal.** On Windows, open **PowerShell** or **Terminal** from the Start menu. On macOS, go to **Applications > Utilities > Terminal**. On Linux, use your distribution's terminal app.
2. **Type the connect command** with your username and IP address: `ssh root@203.0.113.10` If you use a port other than 22, add `-p`: `ssh -p 2222 root@203.0.113.10`
3. **Confirm the host key.** The first time you connect, you will see “The authenticity of host ... can't be established” along with a fingerprint. If you are sure this is your server, type `yes` and press Enter. The key is saved to `known_hosts` and you won't be asked again.
4. **Enter the password.** Nothing appears on screen while you type the password. That is normal. Type it and press Enter.
5. **Check that you are in.** The prompt changes to something like `root@hostname:~#`. Run `hostnamectl` or `uname -a` to see details about the server, and type `exit` to disconnect.

![1: open a terminal, 2: run the ssh command, 3: accept the host key and sign in.](https://voligen.com/templates/website/Voligen/assets/images/kb/vps-vds-ssh-baglanti-adim.svg)

## Using PuTTY on Windows

If you prefer a graphical client to the built-in OpenSSH, you can use PuTTY. Enter the IP address in **Host Name** and 22 in **Port**, choose **SSH** as the connection type and click **Open**. Then enter the username (`root`) and the password. You can store the connection under **Saved Sessions** if you use it often.

> ****Tip: use an SSH key instead of a password****
> 
> Password login works, but SSH keys are safer. Create a key pair on your computer with `ssh-keygen -t ed25519` and copy it to the server with `ssh-copy-id root@203.0.113.10`. Our “Basic Linux Server Security” article covers this in detail.

## Common errors

| Symptom | Likely cause | Fix |
| --- | --- | --- |
| `Connection timed out` | Wrong IP, server is off, or a firewall is blocking the port | Check the IP in your service details. Make sure the server is running and the SSH port is allowed through the firewall. |
| `Connection refused` | The SSH service is not running or is on another port | Try the right port with `-p`. If the service has stopped, contact us through a support ticket. |
| `Permission denied` | Wrong username or password, or password login is disabled | Retry and watch the letter case. If you disabled password login, connect with your key. |
| `REMOTE HOST IDENTIFICATION HAS CHANGED` | The server was reinstalled and its key changed | If you reinstalled it yourself, remove the old entry with `ssh-keygen -R 203.0.113.10`. If you didn't, do not connect. Let us know instead. |

> ****Warning****
> 
> Never send your root password by email or chat. If you need to share access details with our support team, turn on **Encrypt Message** in the ticket form.

## Frequently asked questions

### I forgot my root password. What now?

Check your service details in the client area first. If you cannot reset it there, go to **Support tickets > Open a ticket**, select the server and ask for help.

### Do I use SSH for Windows servers too?

Windows servers are normally managed with Remote Desktop (RDP). This guide is for Linux servers.

### My session drops after a while. Why?

Network devices may close idle connections. Adding `ServerAliveInterval 60` to `~/.ssh/config` on your computer keeps the session alive.

### Can I open several SSH sessions at once?

Yes. Each terminal window can hold its own session.

Still can't connect? Open a ticket from the client area or reach us via our [contact page](https://voligen.com/iletisim). For servers with full root access, see our [VDS servers](https://voligen.com/ssd-sanal-sunucular-vds-vps).
