> For the complete documentation index, see [llms.txt](https://docs.mikopbx.com/mikopbx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mikopbx.com/mikopbx/faq/troubleshooting/connecting-to-a-pbx-using-ssh/putty.md).

# Подключение к АТС с помощью SSH-клиента (Putty)

В данной инструкции будет описано подключение по SSH с помощью Putty

1. Скачайте программу для подключения по SSH. Это можно сделать на официальном сайте по [ссылке](https://putty.org.ru/download.html)
2. Запустите скаченную программу. У вас откроется главное меню.

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-c49e0c473e4f7edddfcad944df20d422e8d5b6ca%2F1%20(40).png?alt=media" alt=""><figcaption></figcaption></figure>

3. Перейдите в раздел «**Соединение**» - «**Данные**»

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-b5eba04ba7d7a45c4dd0071ae0770d8852b2ab6d%2F2%20(21).png?alt=media" alt=""><figcaption></figcaption></figure>

4. «**Имя пользователя для автовхода**» укажите **root**

«**Строка типа терминала**» укажите **xterm-256color**

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-e86bd28f7198c545f8346da12681349766dca317%2F3%20(37).png?alt=media" alt=""><figcaption></figcaption></figure>

5. Перейдите в раздел «**Кодировка**»

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-e140d4d5c93bd4fe73b55b13dae5764f2a39ef96%2F4%20(18).png?alt=media" alt=""><figcaption></figcaption></figure>

6. «**Кодировка**» - укажите **UTF-8**

   Установите флаг «**Включить рисование линий VT100 даже в режиме UTF-8**»

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-e10e47d7eedfdcbfe3f0e5daa4c6e586c4bf0a03%2F5%20(25).png?alt=media" alt=""><figcaption></figcaption></figure>

7. Перейдите в раздел «**Сессия**» - «**Журнал**». Тут можно настроить вывод в файл:

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-0ec8c5cadc26245ae0fa99e8eb3b98b397975338%2F6%20(14).png?alt=media" alt=""><figcaption></figcaption></figure>

8. Перейдите в раздел "**Сеанс**"

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-0f1b38745b8983891bd1194d249b27ce41d6d652%2F7%20(14).png?alt=media" alt=""><figcaption></figcaption></figure>

9\. Необходимые данные:

* **Имя хоста** (или IP-адрес)- IP адрес АТС
* **Порт -** порт для подключения по SSH по умолчанию **22**
* Введите имя сессии и сохраните ее настройки

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-ec0a542322a8370617a26ae74ce5a10037f9989c%2F8%20(5).png?alt=media" alt=""><figcaption></figcaption></figure>

10. В дальнейшем используйте действие «**Загрузить**» для использования сохраненной ранее сессии

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-d1c34e52dbc7fe3d073cf9b089f9c29403c3e3ae%2F9%20(11).png?alt=media" alt=""><figcaption></figcaption></figure>

11. Выполните действие «**Соединиться**» для подключения к АТС и введите пароль SSH

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-92b3782fce74407c617b41ddc07adbea287318f1%2F10%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

12. Перед подключением вам необходимо разрешить авторизацию по паролю в веб-интерфейсе MikoPBX, а так же задать пароль для подключения: для этого перейдите "**Общие настройки**" -> "**SSH**"

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-6b984d43103cee2f5b6c7fdebee7e609574abf19%2F13%20(12).png?alt=media" alt=""><figcaption></figcaption></figure>

13. После ввода пароля SSH, у вас откроется меню АТС

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-b56406c472f2a2bde3172d72473c5a4623e8f8f3%2F11%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>

14. Для открытия консоли перейдите в "**\[9] Console(Shell)**"

<figure><img src="https://3704471835-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MPK4TuzRBnP7rt8htho-887967055%2Fuploads%2Fgit-blob-73e8bfce936d4674ce6f17ba8b42957101a199a1%2F12%20(11).png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.mikopbx.com/mikopbx/faq/troubleshooting/connecting-to-a-pbx-using-ssh/putty.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
