# Настройка доступа порта 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: 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://manual.boxexchanger.net/dlya-razrabotchikov/nastroika-firewall/nastroika-dostupa-porta-22-ssh.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.
