# Connect OVH Cloud VPS

#### You:
how do i connect to my ovh cloud vps

#### ChatGPT:
Connecting to an OVHcloud VPS depends on the operating system installed on the VPS and the device you're connecting from.

## 1. Find your VPS IP address

Log into your OVHcloud control panel and go to:

**Bare Metal Cloud → Virtual Private Servers → Your VPS**

You'll see:

- Public IP address
- Operating system
- Hostname

The initial username and password are sent in the VPS delivery email. For Linux images, OVH typically creates a user matching the OS name (such as `ubuntu`, `debian`, or `rocky`). ([OVHcloud Documentation](https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/starting-with-a-vps?utm_source=chatgpt.com))

---

## 2. If your VPS runs Linux

### From Windows (PowerShell)

Open PowerShell and run:

```powershell
ssh ubuntu@YOUR_SERVER_IP
```

Example:

```powershell
ssh ubuntu@51.xxx.xxx.xxx
```

Replace `ubuntu` with the username for your distribution.

If SSH uses a custom port:

```powershell
ssh ubuntu@YOUR_SERVER_IP -p 2222
```

The first time you connect, type:

```text
yes
```

and enter your password. ([OVHcloud Documentation](https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/ssh-introduction?utm_source=chatgpt.com))

---

### From macOS or Linux

Open Terminal and run:

```bash
ssh username@YOUR_SERVER_IP
```

Example:

```bash
ssh debian@51.xxx.xxx.xxx
```

If prompted:

```text
Are you sure you want to continue connecting (yes/no)?
```

type:

```text
yes
```

Then enter the password. ([OVHcloud Support](https://support.us.ovhcloud.com/hc/en-us/articles/360000416484-Getting-Started-with-SSH?utm_source=chatgpt.com))

---

## 3. If your VPS runs Windows Server

Windows VPSes are accessed through **Remote Desktop (RDP)** rather than SSH. ([OVHcloud Documentation](https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/ssh-introduction?utm_source=chatgpt.com))

On Windows:

1. Press **Win + R**
2. Type:

```text
mstsc
```

3. Enter the VPS IP address.
4. Log in with the Administrator credentials supplied by OVH.

---

## 4. If SSH connection fails

Check:

### Is the server running?

In the OVH control panel, verify that the VPS status is **Running**.

### Are you using the correct username?

Common usernames:

- Ubuntu → `ubuntu`
- Debian → `debian`
- Rocky Linux → `rocky` ([OVHcloud Documentation](https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/starting-with-a-vps?utm_source=chatgpt.com))

### Is port 22 open?

Try:

```bash
ssh username@IP
```

If it times out, a firewall or SSH service problem may exist.

### Use the OVH KVM console

The web console allows access even when SSH is unavailable and can be used to restart the SSH service. Community reports frequently recommend this approach when lockouts occur. ([Reddit](https://www.reddit.com/r/OVHcloud/comments/1qo2f1i/could_not_ssh_into_my_vps_afetr_upgrade_from/?utm_source=chatgpt.com))

---

### If you tell me:

1. Which OS is installed on the VPS (Ubuntu, Debian, Windows Server, etc.),
2. Whether you're connecting from Windows, macOS, or Linux,
3. And (optionally) the exact error message you get,

I can give you the exact commands to connect.
