anten-ka
@AntenkaAI_bot подскажи как прокинуть ssh тунель на 127.0.0.1:1984 на свой VPS
**Planning SSH tunnel guidance**
I need to answer in Russian, concise and in a sysadmin style. The user asks how to forward an SSH tunnel to 127.0.0.1:1984 on their VPS. I should explain the local port forwarding syntax with `ssh -L`, include keeping the connection open with `-N`, maybe mention `-f` if they want background. Since it is likely for browser access to a local service on the VPS, the syntax will be something like `ssh -L 1984:127.0.0.1:1984 user@vps_ip -N`, but they want to proxy to their VPS to local 127.0.0.1:1984 on the VPS. If connecting from their machine to a service on the VPS, local port forwarding maps local machine port to remote VPS localhost. I should ensure they understand the direction, perhaps include both “to VPS” and “from VPS” examples. Let's craft a direct answer, short and helpful.
🐶 Если нужно пробросить **локалхост VPS** `127.0.0.1:1984` на свой ПК, делай **локальный форвард**:
```bash
ssh -L 1984:127.0.0.1:1984 root@IP_ВПС -N
```
Потом на своём ПК открываешь:
```bash
http://127.0.0.1:1984
```
Если надо в фоне, добавь `-f`:
```bash
ssh -f -N -L 1984:127.0.0.1:1984 root@IP_ВПС
```
Если хочешь, могу ещё показать вариант через `Termius` или если туннель нужен **в обратную сторону**.
ответь на русском
🐶 Если нужен проброс с **VPS на твой ПК** для сервиса на `127.0.0.1:1984`:
```bash
ssh -N -L 1984:127.0.0.1:1984 root@IP_ВПС
```
Потом открываешь у себя:
```bash
http://127.0.0.1:1984
```
Если хочешь в фоне:
```bash
ssh -f -N -L 1984:127.0.0.1:1984 root@IP_ВПС
```
Если надо наоборот, скажу и дам команду.