# How do I connect to my cloud server?

> Log in to your Phluit cloud server as root over SSH or in the browser console, reset the root password, and add or remove SSH keys from the portal.

Source: https://docs.phluit.com/products/managed-vms/connect-to-a-cloud-server/

You log in to your server as **root**, the administrator. You can use SSH from your own computer, or the console in your browser.

## Connect with SSH

1.  Open your server's page and stay on the **Overview** tab.
    
2.  Under **Access**, click **Copy** next to the SSH command. It looks like this:
    
    ```
    ssh root@203.0.113.10
    ```
    
3.  Paste it into a terminal on your computer and press Enter.
    
4.  Log in:
    
    -   **With a password:** click **Show** or **Copy** next to **Root password** on the Overview tab.
    -   **With an SSH key:** your key logs you in. If you chose an SSH key when you created the server, password login over SSH is off.

## Use the console in your browser

1.  Open the **Access & console** tab.
2.  Under **Droplet console**, click **Launch console**.

A terminal opens in a new window, logged in as root. It's handy when you have no SSH program at hand.

## Set a new root password

1.  Open the **Access & console** tab.
2.  Under **Root password**, click **Reset root password** and confirm.

The server gets a new random password, shown on the **Overview** tab. The old password stops working. If you log in with an SSH key, password login over SSH stays off, but the new password works in the console.

## Add or remove an SSH key

1.  Open the **Access & console** tab.
2.  Under **SSH keys for root**, paste a public key (it starts with ssh-ed25519, ssh-rsa or ecdsa) and click **Add key**.
3.  To remove a key, click **Remove** next to it.

The key marked **panel** lets the portal open the console and reset your password. Leave it on the server.

## Good to know

-   **The console, the password reset and the key list use SSH port 22.** If they show "Could not reach the server on SSH port 22", check on the **Power** tab that the server is running, and that your firewall lets port 22 in. See [How do I set up the firewall?](/products/managed-vms/cloud-firewall/)
-   **We e-mail you** when the root password is reset or an SSH key is added or removed from the portal.
-   If you change the root password on the server yourself, the one on the Overview tab no longer applies.
