# Setup and usage

## Enable SSH ID

{% tabs %}
{% tab title="Desktop" %}
To create SSH ID on the desktop:

1. Navigate to `Termius > Settings > SSH ID`
2. Click the `Set up SSH ID` button to start the process<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FZSNvA7FdCtm88RoPyXR7%2FCreate.png?alt=media&#x26;token=f00de4a3-3e39-4f5f-bf53-57e853f10607" alt=""><figcaption></figcaption></figure>
3. Choose your unique username. Wait for Termius to generate passkeys on this device<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FdW89iQSvUOukTJxh4Y7B%2FCreate-1.png?alt=media&#x26;token=2bd2fea5-cce9-4bfe-ae17-57ed2871d3a2" alt=""><figcaption></figcaption></figure>
4. Open Termius on your other devices to generate passkeys there. It is recommended to use at least two devices<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FkX8O2zLAFyZiRW0syO06%2FCreate-4.png?alt=media&#x26;token=00d801b2-4daf-42fa-84b0-e9fc0155a604" alt=""><figcaption></figcaption></figure>
5. Your SSH ID is ready. Next, [Connect using SSH ID](#connect-using-ssh-id).<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2Fps4qxUjJcoBSLtydqjNJ%2FCreate-3.png?alt=media&#x26;token=6650ce06-abfc-447f-8fcf-03c3d69a2397" alt=""><figcaption></figcaption></figure>

{% endtab %}

{% tab title="iOS" %}
To create SSH ID on iOS:

1. Open `Profile` then tap SSH ID<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FcYvyGbZ2q52FkQV8kA9T%2FiOS06%20(1).png?alt=media&#x26;token=d711f7b3-0d3c-4acc-98fe-3be3f6016ad6" alt="" width="375"><figcaption></figcaption></figure></div>
2. Tap `Set up your SSH ID` button to start the process<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FRsWpPDOIILDMbExv8TZs%2FiOS01.png?alt=media&#x26;token=ff56a9d7-ca40-4152-90b1-7f2502a549fe" alt="" width="375"><figcaption></figcaption></figure></div>
3. Choose your unique username. Wait for Termius to generate passkeys on this device<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FI1TPOgP5vOEmxVPCu7UJ%2FiOS02.png?alt=media&#x26;token=8f42fc11-e605-40c6-9ab8-166557c9099a" alt="" width="375"><figcaption></figcaption></figure></div>
4. Open Termius on your other devices to generate passkeys there<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FkX8O2zLAFyZiRW0syO06%2FCreate-4.png?alt=media&#x26;token=00d801b2-4daf-42fa-84b0-e9fc0155a604" alt="" width="563"><figcaption></figcaption></figure></div>
5. Select whether to use biometric passkeys by default<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2F0xVx0tcbFXPb1HshkqhT%2FiOS04.png?alt=media&#x26;token=296f161b-5741-40c5-8ea3-3f2e7d20c8df" alt="" width="375"><figcaption></figcaption></figure></div>
6. Your SSH ID is ready. Next, [connect using SSH ID](#connect-using-ssh-id).<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FRzeMB0fRExSCIYoGsyOF%2FiOS05.png?alt=media&#x26;token=265122a4-bbfa-4d6d-95a3-8a704a18bc4c" alt="" width="375"><figcaption></figcaption></figure></div>

{% endtab %}

{% tab title="Android" %}
To create SSH ID on Android:

1. Open `Settings`, then tap `Account settings` > `SSH ID`<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FfeSPIfw6QBoN6Vrg7oLG%2FAndroid06.png?alt=media&#x26;token=6f487050-8cde-4802-bd10-459c9309eca3" alt="" width="563"><figcaption></figcaption></figure></div>
2. Tap `Set up your SSH ID` button to start the process<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2F4EuSz6jmx4I3McRNso3N%2FAndroid01.png?alt=media&#x26;token=044e01ac-30ef-43cb-9bd6-58f8b2df6762" alt="" width="375"><figcaption></figcaption></figure></div>
3. Choose your unique username. Wait for Termius to generate passkeys on this device<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FTz9oyre3jcgKOF6zaCKz%2FAndroid02.png?alt=media&#x26;token=8ffdcda2-91eb-4431-85aa-3b4457c6d73e" alt="" width="375"><figcaption></figcaption></figure></div>
4. Open Termius on your other devices to generate passkeys there<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FaXztSayWreeSeR24RBS8%2FAndroid03%20(2).png?alt=media&#x26;token=3d0c28ca-8fee-4b3a-8772-711169896b4c" alt="" width="375"><figcaption></figcaption></figure></div>
5. Select whether to use biometric passkeys by default<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2F72SZ7uA9zbSSJHAVLBpJ%2FAndroid04.png?alt=media&#x26;token=80df6033-479b-4560-88b7-396a8ba4920c" alt="" width="375"><figcaption></figcaption></figure></div>
6. Your SSH ID is ready. Next, [connect using SSH ID](#connect-using-ssh-id).<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FjvvDH8zy0VjKqKFHL9mV%2FAndroid05.png?alt=media&#x26;token=3d341902-3093-4275-95ec-0bdc6de369e4" alt="" width="375"><figcaption></figcaption></figure></div>

{% endtab %}
{% endtabs %}

## Connect using SSH ID

To connect using an SSH ID, you first need to provision it on your servers and assign it to your hosts.

### Provision SSH ID to your server

There are several ways to copy the public keys under your SSH ID to your servers.

{% tabs %}
{% tab title="Shell command" %}
To copy the public keys to your server via shell command:

1. Connect to your server using the currently set up authentication method
2. Run the following command in the terminal:\
   `curl -fs https://sshid.io/<your handle> >> ~/.ssh/authorized_keys`<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2Fhcpm5gQxRJpXQYDJruJ1%2FShell%20command.png?alt=media&#x26;token=bfba6e2d-44aa-4c44-af98-478c212fb3f5" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If you want to use non-default passkey types, use `https://sshid.io/<your handle>/<key_type>` e.g., `https://sshid.io/username/RSA`
{% endhint %}
{% endtab %}

{% tab title="\~/.ssh/authorized\_keys" %}
To copy the public keys to your server manually:

1. Go to `https://sshid.io/<your_handle>`<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FJuj20QZM4K1lZ7Rr4mCl%2Fauthorized%20keys01.png?alt=media&#x26;token=3d71dc62-d425-4a7c-a3f8-02ed2bdea52d" alt=""><figcaption></figcaption></figure>
2. Select `~/.ssh/authorized_keys`<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FK7lSzh6JG3vm3Ao1R1Gy%2Fauthorized%20keys02.png?alt=media&#x26;token=20595a14-8c82-4f35-921a-2abe38d9b9a4" alt=""><figcaption></figcaption></figure>
3. Select the passkey type if you want to use a non-default one<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FFfFkldcv8kFwGqPNQ2yz%2Fauthorized%20keys03.png?alt=media&#x26;token=ac8446f4-a19d-4a40-af65-4af49d10f410" alt=""><figcaption></figcaption></figure>
4. Copy all your public keys<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2F5JiD5BJyaT0g8u3bfemS%2Fauthorized%20keys04.png?alt=media&#x26;token=1d017f87-3b57-4397-a012-9c09e8a99733" alt=""><figcaption></figcaption></figure>
5. Connect to your server using the already set authentication method
6. Paste the copied public keys to the `~/.ssh/authorized_keys` file
   {% endtab %}
   {% endtabs %}

### Link SSH ID with your hosts

Once the provisioning step is completed, you need to assign SSH ID to the required hosts to easily connect to them from your devices.

{% tabs %}
{% tab title="Desktop" %}
To link SSH ID with your hosts on the desktop:

1. Open Host details on the host you want to connect to with SSH ID<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FRLxijz5IBFGl8liI0MmQ%2FMove1.png?alt=media&#x26;token=c8eed98c-cad9-4a49-acc1-98e9f0e3546f" alt=""><figcaption></figcaption></figure>
2. Navigate to the `Credential` section and click `+ SSH ID, Key, Certificate, FIDO2`<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FcfxaG5kuHduRkwjgHa9S%2FNew%20host%20ssh%20key.png?alt=media&#x26;token=1783d4d9-6fa8-40d9-ae66-1e2da433fff8" alt=""><figcaption></figcaption></figure>
3. Choose `SSH ID` as the authentication method. Termius auto-saves the changes<br>

   <figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FqpjH5DPhbMyXcJSmbjGK%2FLink.png?alt=media&#x26;token=c5d79446-d510-41e7-98cc-4f3bfcb0ebe1" alt=""><figcaption></figcaption></figure>

{% endtab %}

{% tab title="iOS" %}
To link SSH ID with your hosts on iOS:

1. Tap the host icon you want to connect to with SSH ID and tap `Edit`<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FPXiTmc9VjAQDBNCHFTZf%2FMove_mobile01.png?alt=media&#x26;token=2e8b3eed-5fb0-46ac-8391-46e0b490c053" alt="" width="375"><figcaption></figcaption></figure></div>
2. In the Credentials section, tap `SSH.id, Key, Certificate, FIDO2`<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FDcXXInl5GLJN6pryFvgS%2FiOS_key_01.png?alt=media&#x26;token=b0022570-b685-498d-ab7a-b0f07d21ac6e" alt="" width="375"><figcaption></figcaption></figure></div>
3. Choose `SSH ID` as the authentication method<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FE0C0wmMY3xrUbl3KyjMf%2FiOS_link.png?alt=media&#x26;token=e177faf9-5791-499d-929b-22003aa9f35c" alt="" width="375"><figcaption></figcaption></figure></div>
4. `Save` the host changes
   {% endtab %}

{% tab title="Android" %}
To link SSH ID with your hosts on iOS:

1. Tap the host icon you want to connect to with SSH ID and tap `Edit`<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FuBpXuGXJdpZBqJUmDU57%2Fassign_android01.png?alt=media&#x26;token=c2f35492-144c-4a2e-9b3f-575a71164ea1" alt="" width="375"><figcaption></figcaption></figure></div>
2. In the Credentials section, tap `SSH.id, Key, Certificate, FIDO2`<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2FQFgbpkbsqL9v8ZhXAPdE%2Fassign_android02.png?alt=media&#x26;token=3607516f-f45b-4f30-b313-61b4441c5e4b" alt="" width="375"><figcaption></figcaption></figure></div>
3. Choose `SSH ID` as the authentication method<br>

   <div align="left"><figure><img src="https://1830966906-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5PCLq8V6ZExygzYl6XVJ%2Fuploads%2F9KG8opQNewzyzRzOBBpP%2FAndroid_link.png?alt=media&#x26;token=04eeddda-8007-4e28-a188-573924c9c626" alt="" width="375"><figcaption></figcaption></figure></div>
4. `Save` the host changes
   {% endtab %}
   {% endtabs %}


---

# 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://docs.termius.com/ssh-id-passkeys-for-ssh/setup-and-usage.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.
