# Container

## Connect to Your Machine

After you make the payment, you should now see a dashboard with your newly rented machine. If you do not see the IP Address and Port, you may need to manually refresh the browser page.&#x20;

You can copy the SSH command by clicking on the button as shown below.

<figure><img src="https://2171129615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzj4sv2NjN42aoPb00bj8%2Fuploads%2FqipaItkbTv59S9JmhaG9%2Fimage.png?alt=media&#x26;token=ce55a766-d9e9-4832-bdc0-dc20e9953faa" alt=""><figcaption><p>Your Virtual Machine</p></figcaption></figure>

The command will look like this

```bash
ssh root@rent-gpus.netmind.ai -p {{SSH_PORT}}
```

If you're on Linux os MacOS, you will usually be able to pass this command directly to your terminal in order to connect. For Windows users, you can SSH using the PuTTY software from [this link](https://www.putty.org).\
Our product also supports IDE connection (for example via VSCode).

{% hint style="info" %}
If any failure or technical issue is detected on the server, the machine status on the dashboard might be showing as "Offline". In that case a "restart" button should appear, please restart the machine. If the problem persists, contact our support at <hello@netmind.ai>.
{% endhint %}

***

## Data Sync

It is important to note that once the rental is terminated and the machine is released back to our pool of available servers, retrieving data becomes impossible. We recommend that you perform a backup of any relevant data, either locally or to the cloud, before terminating the rental.

### Local backup

If you're on a Linux or MacOS system, this could be achieved via Secure Copy with the `scp` command. The example below shows how to donwnload the `/data/example.zip` folder from the remote machine to your local machine in the home directory, when run form your local machine. You will need to adjust the port and IP address accordingly. On Windows, you can use [WinSCP](https://winscp.net/eng/index.php).

```bash
scp -P {{SSH_PORT}} root@rent-gpus.netmind.ai:/data/example.zip ~/example.zip
```

{% hint style="info" %}
We only recommended using it for small files under 100MB.
{% endhint %}

### Cloud Sync

We encourage you to use cloud platforms for data synchronization services. We provide the examples of using Google Cloud, DropBox, and AWS as three cloud storage tools for data synchronization [here](https://netmind-power.gitbook.io/netmind-power-documentation/rent-gpus/container/cloud-sync).

***

## Expose Your Service

Since the container instance does not have a public IP, you need to use an ingress service to access services within the environment from the internet.&#x20;

NetMind provide a free ingress service that supports proxying for up to one port. You can set the port you wish to expose in the custom template. Once the environment is created, you can view the corresponding address that is proxied to the internet in the "Rent GPUs detail" page.

<figure><img src="https://2171129615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzj4sv2NjN42aoPb00bj8%2Fuploads%2FlXsZ5ZN5QDb07nhfzorr%2Fimage.png?alt=media&#x26;token=1dadfb0d-b7e1-4edf-85f8-ebde2bfbbf44" alt=""><figcaption><p>Machine Setup Page - Edit Image</p></figcaption></figure>

<figure><img src="https://2171129615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzj4sv2NjN42aoPb00bj8%2Fuploads%2F13ikoeqOUSxL66wU9Xzo%2Fimage.png?alt=media&#x26;token=d974cb85-9554-4f13-a03b-3fe6af794cc2" alt=""><figcaption><p>Config the Expose Port</p></figcaption></figure>

<figure><img src="https://2171129615-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fzj4sv2NjN42aoPb00bj8%2Fuploads%2FE5412SFjJYMjvAOqz2gy%2Fimage.png?alt=media&#x26;token=c118238c-1956-43d7-80c1-cbc68f5c77c9" alt=""><figcaption><p>Copy the Exposed URL</p></figcaption></figure>

{% hint style="info" %}
Alternatively, you can choose to use third-party tools like **ngrok** to implement the ingress service. Here is an example to demonstrate how to set up the Ngrok as Ingress service [here](https://netmind-power.gitbook.io/netmind-power-documentation/rent-gpus/container/ingress-service).
{% endhint %}

***

## Machine status

<table><thead><tr><th width="154">Status</th><th width="477.09765625">Explation</th><th>Billing</th></tr></thead><tbody><tr><td>To Be Paid</td><td>The cost of the GPUs you have chosen to rent has been calculated. You need to complete payment before NetMind allocates the machine for you.</td><td>Not Billed</td></tr><tr><td>Queuing</td><td>NetMind is processing your payment and locating the machines for you.</td><td>Not Billed</td></tr><tr><td>Running</td><td>Your machine is now running. Connect to it via SSH.</td><td>Billed</td></tr><tr><td>Paused</td><td>Your machine is Paused. You are unable to access your instance, but your data is still available</td><td>Not Billed</td></tr><tr><td>Offline</td><td>The machine you rented has gone offline. NetMind is working to bring it back online.</td><td>Not Billed</td></tr><tr><td>Expired</td><td>The rental period for your machine with NetMind has expired.</td><td>Not Billed</td></tr></tbody></table>
