> For the complete documentation index, see [llms.txt](https://manual.boxexchanger.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.boxexchanger.net/dlya-razrabotchikov/nastroika-firewall/nastroika-dostupa-porta-22-ssh.md).

# Настройка доступа порта 22 (ssh)

{% hint style="warning" %}
**Внимание:** У вас должен быть статичный IP-адрес ограничив доступ подключится к серверу по SSH с другого IP будет не возможно (вы можете потерять доступ к серверу)&#x20;
{% endhint %}

1. Замените в команде значение `ВАШ.ИП.АДР.ЕС` на ваш ИП получить его можно по ссылке [ip.me](https://ip.me) например ваш IP будет иметь вид 123.34.56.789

   ```bash
   ufw allow from ВАШ.ИП.АДР.ЕС to any port 22
   ```
2. Если у вас несколько IP повторяйте команду для каждого IP рекомендуется добавить минимум 2 шт.&#x20;
3. [Продолжайте настройку UFW](/dlya-razrabotchikov/nastroika-firewall.md).

{% hint style="info" %}
**Доступ команды BoxExchanger:** Если вы хотите предоставить доступ для нашей команды разработчиков запросить IP адрес специалистов можно в службе поддержки BoxExchanger.
{% endhint %}


---

# 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, and the optional `goal` query parameter:

```
GET https://manual.boxexchanger.net/dlya-razrabotchikov/nastroika-firewall/nastroika-dostupa-porta-22-ssh.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
