メインコンテンツまでスキップ

SSH Terminal

You can add up to 10 SSH keys to enable remote access. These keys will be automatically injected into the container at runtime, allowing you to SSH into the container using any of them.

Pre-configured SSH Templates

SSH is already set up and ready to use on the following templates:

  • Code Server
  • Ubuntu 24.04
  • TensorFlow 2.19.0
  • Nvidia CUDA 12.9.1
  • Nvidia PyTorch 25.03

{% hint style="info" %} If you want to connect SSH in other templates, please install OpenSSH-server before using. {% endhint %}

How to add SSH key?

  1. Ensure you have an SSH key pair generated on your local machine. If you haven’t done this, you can generate one using this command on your local terminal:
ssh-keygen -t ed25519 -C YOUR_EMAIL@DOMAIN.COM 
  1. To retrieve your public SSH key, run this command:
cat ~/.ssh/id_ed25519.pub 

This will output something similar to this:

ssh-ed25519 AAAAC4NzaC1lZDI1JTE5AAAAIGP+L8hnjIcBqUb8NRrDiC32FuJBvRA0m8jLShzgq6BQ YOUR_EMAIL@DOMAIN.COM 

3. Copy and paste the output into the SSH Public Keys field:

  1. To get the SSH command for your container, navigate to the Container details page. Copy the command listed under SSH command.

It should look something like this:

 ssh root@tcp-endpoint-stg.serverless.fptcloud.com -p 34771 ~/.ssh/id_e25595
  1. Run the copied command in your local terminal to connect to your container.

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-container/tutorials/how-to-access-to-a-container/ssh-terminal.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.