# Remote Access via SSH (common)

{% hint style="info" %} <mark style="color:red;">What is</mark> <mark style="color:red;"></mark><mark style="color:red;">**SSH(Secure Shell)**</mark><mark style="color:red;">?</mark>

It is a protocol to safely access to the other computer through the network.

It provides diverse functions such as remote log-in, remote command execution, safe tunneling of different network service, etc.
{% endhint %}

Runyour AI provides **SSH Access function** to remotely access the GPU instance and utilize diverse templates.

**What are the benefits of using SSH remote access?**

✔️ Protection of data transmission through encryption technology

✔️ Enhanced utilization of other network services through secure tunneling

✔️ **Easy remote GPU instance usage in a VM environment with simple input**

**Take advantage of Stable Diffusion now with the&#x20;**<mark style="background-color:yellow;">**templates**</mark>**&#x20;provided by Runyour AI!**

***

## Step 1. Machine Rental / Template Selection

<figure><img src="https://1302126628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJxCl6pdCJeZcbGEegBNj%2Fuploads%2F8bS47DhFH0foZ8lGg2B9%2F%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%202024-07-08%20152207.png?alt=media&#x26;token=bd0e00e3-4b73-4011-bb51-ce1fb1410c33" alt=""><figcaption></figcaption></figure>

* When you select the desired machine from the GPU Cloud list, you will move to the template selection stage. \
  Choose a template and click the "Rent" button at the top. (Please check if SSH is supported.)
* You can check the rented machine on the <mark style="background-color:yellow;">My Page > Dashboard.</mark>

## Step 2. SSH Remote Access

<figure><img src="https://1302126628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJxCl6pdCJeZcbGEegBNj%2Fuploads%2FaTc3OH3y1JhZTUe8gEXp%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202025-07-24%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2010.57.55.png?alt=media&#x26;token=9760d570-2392-4f83-b3a2-08e7289d25ac" alt=""><figcaption></figcaption></figure>

* Click the 'SSH / WEB' button at the top left of the rented machine page and click the 'PEM KEY' button to download the PEM KEY.

<figure><img src="https://1302126628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJxCl6pdCJeZcbGEegBNj%2Fuploads%2FcUpGGAohAte6rsbKBhlu%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202025-07-24%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%2010.57.55.png?alt=media&#x26;token=8eb0f55b-3883-44c2-a107-0d1a014facea" alt=""><figcaption></figcaption></figure>

After downloading, the code of the SSH access information below will be activated. Please click the copy button on the right.

```
ssh -i ~/Downloads/PEM Key Name.pem ubuntu@Access information
```

Please enter the code in the terminal in the form above. After that, you need to check if the terminal is connected to SSH.

<figure><img src="https://1302126628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJxCl6pdCJeZcbGEegBNj%2Fuploads%2FGMWJXf9LwyiePXKP8CWH%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202025-07-24%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%208.49.29.png?alt=media&#x26;token=53444465-98b9-42db-8011-8a209adb99ed" alt=""><figcaption></figcaption></figure>

<mark style="background-color:red;">If the above error occurs at this stage, please refer to the document below.</mark>

{% content-ref url="fixing-pem-key-file-permission-issues" %}
[fixing-pem-key-file-permission-issues](https://runyourai.gitbook.io/eng-runyourai/tutorial/fixing-pem-key-file-permission-issues)
{% endcontent-ref %}

<figure><img src="https://1302126628-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJxCl6pdCJeZcbGEegBNj%2Fuploads%2FPYpdvPpqgjYM5rFQQLar%2F%E1%84%89%E1%85%B3%E1%84%8F%E1%85%B3%E1%84%85%E1%85%B5%E1%86%AB%E1%84%89%E1%85%A3%E1%86%BA%202025-07-24%20%E1%84%8B%E1%85%A9%E1%84%8C%E1%85%A5%E1%86%AB%208.46.45.png?alt=media&#x26;token=7f3335e8-5e5c-4d2e-8efa-207800c5479d" alt=""><figcaption></figcaption></figure>

When the SSH connection is complete, the terminal prompt will change to the form of ubuntu\@machine name.\
\
This means that you are currently connected to a remote machine (server), not a local computer.
