# Access a GPU VM

When a GPU VM running Ubuntu is successfully created on the FPT Portal, users can access it by default through the **built-in Web Console**. Additionally, users can connect externally using **SSH clients** or **third-party software like PuTTY or Bitvise**.

## Connect to a GPU VM via Web Console <a href="#accesstoagpuvm-connecttoagpuvmviawebconsole" id="accesstoagpuvm-connecttoagpuvmviawebconsole"></a>

The **Web Console** allows users to control all GPU VMs on **FPT Cloud**, even those without a **Public IP**.

{% stepper %}
{% step %}
On the Side menu, go to **Instance Management**, find the virtual machine you want to access, and under the **Actions** section, select **Console.**

<figure><img src="/files/f4NB3cgOPFsi5sIQvzC2" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The browser will immediately open a new window displaying the server screen, allowing you full control and interaction with the connected server.

<figure><img src="/files/ITQMg54xKUEiDQFWlPeT" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

## SSH to Connect to a GPU VM

You can connect to a GPU VM using an SSH client, typically from a terminal.

To do so, you need to have the following three pieces of information:

* **The public IP address:** After your GPU VM is created and allocated a public IP, that is displayed in the GPU VM list or the GPU VM details pages
* **The username on the server** during initial creation is `root.`
* **The authentication method** for that user. If you add SSH keys to your GPU VM, you can connect using those keys, which we strongly recommend for its additional security. Otherwise, if you use password authentication, use the password you chose.

Once you have your GPU VM's public IP address, username, and password or SSH keys, follow the instructions for your SSH client.

{% stepper %}
{% step %}

### Open your terminal

* On **Linux/macOS**: Launch the Terminal app.
* On **Windows**: Use CMD, PowerShell, Git Bash, or WSL.
  {% endstep %}

{% step %}

### Connecting to your VM

You can connect to your VM in two ways: using a password or an SSH key (.pem file).

{% tabs %}
{% tab title="Connect Using a Password" %}

1. Open your terminal or command prompt.
2. Enter the following command to connect to your VM:

```
ssh <username>@<VM_IP>
```

{% endtab %}

{% tab title="Connect Using an SSH Key (.pem file)" %}

1. &#x20;Navigate to the directory where your .pem file is located.

```
cd <path_to_pem_file_directory>
```

2. Use the SSH key to connect to your VM.

```
ssh -i "<your_key_file.pem>" <username>@<VM_IP>
```

3. **On your first connection**, type `yes` to verify the host's fingerprint and continue.

<figure><img src="https://fptcloud.com/wp-content/uploads/2025/03/6-2.png" alt=""><figcaption></figcaption></figure>

4. You have successfully connected to the server via SSH. Type `exit` to close the SSH session and return to your local shell.

<figure><img src="https://fptcloud.com/wp-content/uploads/2025/03/7-2.png" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
If you see the error **\`WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!\`,** it means the saved SSH fingerprint for the server has changed. To fix it, run the following command to remove the old fingerprint
{% endhint %}

```
ssh-keygen -R "<VM_IP>"
```

{% endtab %}
{% endtabs %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-virtual-machine/on-fpt-cloud-console/tutorials/access-a-gpu-vm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
