> ## Documentation Index
> Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect to your bare metal server

> Log in to your dedicated server over SSH as root with your keys, or through the console from your browser

Your bare metal server is installed with SSH keys only, with no password: you log in as `root` with the key you chose at the order or at the last reinstall.

> [!NOTE]
>
> **Prerequisites**
>
> * A bare metal server whose installation is finished (the **Tasks** tab shows it)
> * The private key matching one of the [SSH keys](https://help.onetsolutions.net/vps/ssh-keys.md) installed on the server

## Find the server's address

In the [console](https://console.onetsolutions.net), open **Bare Metal**, then click your server. Its public IPv4 address shows under its name: click it to copy it. The **Networking** tab also shows the IPv6 block routed to the server.

## Connect over SSH

```bash theme={null}
ssh root@203.0.113.20
```

Replace `203.0.113.20` with your server's address. If your key is not your default one, give its path:

```bash theme={null}
ssh -i ~/.ssh/my_key root@203.0.113.20
```

> [!TIP]
>
> The SSH keys of your project are in **Bare Metal** > **SSH Keys**. To put a new key on the server, add it to the server's `~/.ssh/authorized_keys`, or choose it at the next [reinstall](https://help.onetsolutions.net/bare-metal/reinstall.md).

## Connect through the console

When SSH does not answer (network configuration, firewall), open the server's screen from your browser: **Console** tab, then **Connect**. See [Console and rescue mode](https://help.onetsolutions.net/bare-metal/kvm-console-and-rescue.md).

## Troubleshooting

> [accordion] Permission denied (publickey)
>
> * Check that you use the private key matching a key chosen at the installation.
> * Connect as `root`.
> * If you no longer have the key, [reinstall](https://help.onetsolutions.net/bare-metal/reinstall.md) the server with a new key, or use [rescue mode](https://help.onetsolutions.net/bare-metal/kvm-console-and-rescue.md#rescue-mode) to add one to `/root/.ssh/authorized_keys`.

> [accordion] The connection times out
>
> * Check in **Overview** that the **Power Status** is on, and that no task is running in **Tasks**.
> * Open the **Console** to see whether the system started.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.