# 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="/files/0a60pFzuhvP3Ps5Dc67t" 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="/files/eVvCfftdKbxoY1fdcwJT" 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="/files/YxLjyXrvoEx4KuQnIvsA" 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="/files/HodD7z5WHmQj5fFQ8Nok" 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="/pages/36bVlc2TKT6BhK98Tb1t" %}
[Fixing PEM Key File Permission Issues](/eng-runyourai/tutorial/fixing-pem-key-file-permission-issues.md)
{% endcontent-ref %}

<figure><img src="/files/JhIIOGMkUpzlAUcCcTBq" 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.


---

# 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://runyourai.gitbook.io/eng-runyourai/tutorial/remote-access-via-ssh-common.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.
