> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/bare-metal/dedicated-servers/how-tos/connect-to-the-server-using-ssh-or-rdp.md).

# Connect to the server using SSH or RDP

The connection details will be emailed to you. To view them, open the URL in the email and click View secret.

***

If you selected an operating system when ordering the dedicated server, it will already be installed when you receive the email with the details from Glesys. You can then log in directly to the server via SSH if you chose Linux, or via Remote Desktop (RDP) if you chose Microsoft Windows.

In the email from Glesys, there is a link you must click to access the SSH or RDP login credentials. The link starts with [*secrets.glesys.com*](http://secrets.glesys.com). When the page opens, the credentials are hidden. You need to click **View secret** to reveal the details.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FR44YbxWk3D0fdoCLSbJN%2Fdedicated-server-view-secret.png?alt=media&amp;token=06e0936c-252f-4be9-bf8a-f7879e56ac7a" alt=""><figcaption></figcaption></figure>

The credentials are now displayed. Make sure to save them in a secure location. They will only be available for 14 days, after which they will be permanently deleted.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2Fk2ds99e2h11pcWRwUbv8%2Fdedicated-server-login-details.png?alt=media&amp;token=e5ec8cbf-3479-472e-89d5-0633f6ea366a" alt=""><figcaption></figcaption></figure>

You can now use the credentials to log in to the server.

{% tabs %}
{% tab title="SSH (Linux)" %}
To connect to your dedicated server, you need to open a terminal. How you do this varies between operating systems and window managers, but generally:

* **Linux:** Search Terminal or press <kbd>CTRL+ALT+T</kbd>.
* **macOS:** Search Terminal.
* **Windows:** Search PowerShell.

If OpenSSH is not installed on your Windows machine by default, see [Microsoft’s documentation](https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse?tabs=gui) on how to do this, or use PuTTY instead.

Once the terminal is open, enter the following SSH command. Replace `username` with the username on the server and replace the IP address (after the `@`) with your VM’s IP address. For a dedicated server, the username is most likely `root`.

```plaintext
ssh username@203.0.113.41
```

If you have multiple SSH keys, you may need to specify the path of your private key using the `-i` flag, as in `ssh -i /path/to/private/key username@203.0.113.41`.

The first time you log in, the server isn’t identified on your local machine, prompting you to confirm that you want to continue connecting. You can type `yes` and then press `ENTER`.

```plaintext
The authenticity of host '203.0.113.41 (203.0.113.41)' can't be established.
ECDSA key fingerprint is SHA256:IcLk6dLi+0yTOB6d7x1GMgExamplewZ2BuMn5/I5Jvo.
Are you sure you want to continue connecting (yes/no)? yes
```

{% endtab %}

{% tab title="Remote Desktop (Windows)" %}
Click on the Start Menu and search for Remote Desktop. Click on **Remote Desktop Connection** to open the program.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FadUkENdJEd9J6IKoFBay%2Fsearch-for-remote-desktop.png?alt=media&amp;token=bbc886c5-6f11-4293-a612-ea0b40f23784" alt=""><figcaption></figcaption></figure>

A dialog box will open where you enter the server's IP address. Once you have entered the IP address, click **Connect**.

<div align="left"><figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2Fr7I6IgOlCYf2IPnobQ1u%2Fconnect-to-remote-desktop.png?alt=media&amp;token=022750d9-adbb-41f4-aada-baaf05e02280" alt=""><figcaption></figcaption></figure></div>

A dialog box will open where you enter the username and password for the server. For a dedicated server, the username is most likely Administrator. But make sure to use the same username as you saw when clicking **View secret** earlier. Click **OK** to log in.

<div align="left"><figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FNnM60qReeXlu77lFKXC5%2Fremote-desktop-username-password.png?alt=media&amp;token=ba5d41f9-93f3-4c77-9082-31d56420a194" alt=""><figcaption></figcaption></figure></div>

If this is the first time connecting to this server, you will see a warning about the certificate. The name on the certificate should match the hostname assigned to the server. If it does, click **Yes** to connect and trust the certificate.

<div align="left"><figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FVSRmVR2oUHWVB2jO0LQN%2Fremote-desktop-check-cert-dedicated.png?alt=media&amp;token=8732f996-f280-4f9d-96c5-e78eb0118301" alt=""><figcaption></figcaption></figure></div>
{% endtab %}
{% endtabs %}
