# Подключение к локальной RDP сессии

В большинстве случаев реализация RDP-сервера на Linux по умолчанию настроена на создание новой сессии при каждом входящем подключении, игнорируя уже запущенный локальный рабочий стол.

В случае, если нужно удаленно подключаться к сессии, уже запущенной локально, то необходимо произвести соответствующие настройки.

### Astra Linux

Удалённое подключение к локальной сессии возможно при использовании fly-dm-rdp. [Инструкция по настройке](https://wiki.astralinux.ru/pages/viewpage.action?pageId=321815341)

### Ubuntu

Удалённое подключение к локальной сессии возможно при использовании gnome remote desktop.

**Алгоритм настройки ОС с графической оболочкой:**

1. Установите пакет gnome-remote-desktop, если его еще нет в системе:

```
sudo apt update
```

```
sudo apt install gnome-remote-desktop
```

2. Перезагрузите машину.
3. Откройте Settings(Настройки), в разделе System -> Users, включите опцию Automatic Login для соответствующего пользователя.
4. Перейдите в System -> Remote Desktop, выберите Remote Desktop для удаленного подключения или Desktop Sharing для совместного доступа.

<br>


---

# 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 http://localhost:3000/url/kb.pvhostvm.ru/hostvm-vdi/troubleshooting-guide/faq/connect-to-local-rdp-session.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.
