> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/multiple-types-connections/host-with-templates.md).

# Host with templates

A ***Host Session*** entry will let you use templates to connect to the host. It will prompt you to choose which template to use to launch the host.

### Create and launch a Host Session entry with templates

1. Create one or multiple [Templates](https://docs.devolutions.net/rdm/commands/file/templates/) via the ***File – Templates – Entry Templates*** menu. You may need to use variables like `$HOST$` for the host name as well as `$USERNAME$` and `$PASSWORD$` for the username and password respectively.
2. Go to ***Edit – New Entry – Add Session***.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB2200.png" alt=""><figcaption></figcaption></figure>
3. Select the ***Host Session*** entry type. It should be located in the ***Session*** section, under ***General***. Click ***OK*** to create the new entry.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB2201.png" alt=""><figcaption></figcaption></figure>
4. In ***General***, go to the ***Advanced*** tab and click on ***Select Templates***.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4269.png" alt=""><figcaption></figcaption></figure>
5. Select the template(s) to add to your host session. To select multiple templates, hold down the <kbd>Ctrl</kbd> key while making your selection.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB2202.png" alt=""><figcaption></figcaption></figure>
6. When you have completed your selection, click ***OK***. The templates will then be added to your host session.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4270.png" alt=""><figcaption></figcaption></figure>
7. Finish configuring your entry, then click ***OK*** to save your changes.
8. Launch your host session. You will be prompted to select the appropriate template to launch the session.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB4271.png" alt=""><figcaption></figcaption></figure>
9. Click ***OK*** after having selected the template. Your session will launch using the information provided in the template configuration.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.devolutions.net/rdm/knowledge-base/how-to-articles/multiple-types-connections/host-with-templates.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.
