# GPU VMへのアクセス

FPTポータル上でUbuntuを実行するGPU VMが正常に作成されると、ユーザーはデフォルトで**組み込みのWebコンソール**を通じてアクセスできます。さらに、**SSH**クライアント**やPuTTY、Bitviseなどのサードパーティ製ソフトウェア**を使用して外部から接続することも可能です。

## Webコンソール経由でのGPU VM接続 <a href="#accesstoagpuvm-connecttoagpuvmviawebconsole" id="accesstoagpuvm-connecttoagpuvmviawebconsole"></a>

**Webコンソールでは、パブリックIP**を持たないVMも含め、**FPT CLOUD**上のすべてのGPU VMを制御できます。

{% stepper %}
{% step %}
サイドメニュー&#x3067;**「インスタンス管理」**&#x306B;移動し、アクセスしたい仮想マシンを見つけ、**「アクション」**&#x30BB;クション&#x3067;**「コンソール」**&#x3092;選択します。

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

{% step %}
ブラウザが直ちに新しいウィンドウを開き、サーバー画面を表示します。これにより、接続されたサーバーを完全に制御し、操作することが可能になります。

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

## GPU VM に接続するための SSH

SSHクライアントを使用してGPU VMに接続できます。通常はターミナルから行います。

接続には以下の3つの情報が必要

* **パブリックIPアドレス：**&#x47;PU VMの作成後、パブリックIPが割り当てられると、GPU VMリストまたはGPU VM詳細ページに表示されます
* **サーバー上のユーザー名：**&#x521D;期作成時は`root`です。
* そのユーザーの**認証方法**。GPU VMにSSHキーを追加した場合、それらのキーを使用して接続できます。セキュリティ強化のため強く推奨します。パスワード認証を使用する場合は、設定したパスワードを使用してください。

GPU VMのパブリックIPアドレス、ユーザー名、パスワードまたはSSHキーを入手したら、お使いのSSHクライアントに応じた手順に従ってください

{% stepper %}
{% step %}

### ターミナルを開く

* **Linux/macOS:** ターミナルアプリを起動します。
* **Windowsの場合：**&#x43;MD、PowerShell、Git Bash、またはWSLを使用します
  {% endstep %}

{% step %}

### VM への接続

VM には、パスワードまたは SSH キー (.pem ファイル) の 2 つの方法で接続できます。

{% tabs %}
{% tab title="パスワードを使用した接続" %}

1. ターミナルまたはコマンドプロンプトを開きます。
2. VM に接続するには、次のコマンドを入力します:

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

{% endtab %}

{% tab title="SSH キー (.pem ファイル) を使用した接続" %}

1. &#x20;.pem ファイルが保存されているディレクトリに移動します。

```
cd <path_to_pem_file_directory>
```

2. SSHキーを使用してVMに接続します。

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

3. **初回接続時、**&#x30DB;ストのフィンガープリントを確認し続行するには yes と入力します。

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

4. SSH経由でサーバーへの接続に成功しました。SSHセッションを終了しローカルシェルに戻るには exit と入力してください。

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

{% hint style="warning" %}
**WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!** エラーが表示された場合、サーバーの保存済みSSHフィンガープリントが変更されたことを意味します。修正するには、以下のコマンドを実行して古いフィンガープリントを削除してください

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

{% endhint %}
{% 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/ai-factory-guideline-jp/fpt-gpu-cloud/gpumashin/chtoriaru/gpu-vmhenoakusesu.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.
