# SSH Authentication

Before creating a GPU virtual environment, an Authentication method must be established to serve as credentials for logging into the environment once it is set up. Currently, only **password-based** authentication is supported. This password will be securely stored and used as the login credential for accessing the virtual environment.

**Example Request:**

{% hint style="info" %}
Replace `{{API_TOKEN}}` with your actual token.
{% endhint %}

{% tabs %}
{% tab title="Curl" %}

```bash
curl --location 'https://api.netmind.ai/v1/rentgpu/auths' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{API_TOKEN}}' \
--data '{"value":"{{YOUR_PASSWORD}}"}'
```

{% endtab %}

{% tab title="Python" %}

```python
import requests
import json

url = "https://api.netmind.ai/v1/rentgpu/auths"

payload = json.dumps({
  "value": "{{YOUR_PASSWORD}}"
})
headers = {
  'Content-Type': 'application/json',
  'Authorization': 'Bearer {{API_TOKEN}}'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)

```

{% endtab %}
{% endtabs %}

**Example Response:**

```json
{
    "id": 0,
    "value": "..."
}
```
