ssh -N -L 8080:<IP вашего сервера>:<порт X-UI панели> root@<IP вашего сервера>
🔸 Example:
ssh -N -L 8080:103.106.2.208:53372 root@103.106.2.208
⛔ D o not close the terminal window - the connection must be active for the panel to work.
<http://localhost:8080/><путь к панели>/
🔸 Example:
http://localhost:8080/iUR0N76VKfF0aMM/
✅ You will see the X-UI login form.
After exporting the configuration from the X-UI panel, you may see the following in the connection bar:
vless://b037ff83-dd81-4ed3-a78d-55a163d3523e@localhost:36970?type=tcp&security=reality&pbk=...#ltr9asgs0
❌ This config will not work because localhost
means "your computer".
✅ Replace localhost
with the external IP address of the server - the same one you used in the SSH command.
🔸 Example after the edit:
vless://b037ff83-dd81-4ed3-a78d-55a163d3523e@103.106.2.208:36970?type=tcp&security=reality&pbk=...#ltr9asgs0
After that, paste the config into the VPN client.