Answer the question
In order to leave comments, you need to log in
The ssh tunnel is not working correctly. Why?
There is a PC, on it you need to run one or another server, its ip is "gray".
The solution that came and did not reach the end:
I take a cheap VPS, it acts as an ssh server. (I googled everything, sort of set it up)
I switch ports by running ssh on the PC:
ssh -R <порт VPS>:localhost:<порт на ПК> <имя пользователя>@<ip VPS'а> -i <ключ>
sudo lsof -i :8000
sshd 2477 ubuntu 10u IPv4 43231 0t0 TCP *:8000 (LISTEN)
sshd 2477 ubuntu 11u IPv6 43232 0t0 TCP *:8000 (LISTEN)
Answer the question
In order to leave comments, you need to log in
Firewalls, firewalls, blablabla. And the asterisk is missing:
ssh -R *:<порт VPS>:localhost:<порт на ПК> <имя пользователя>@<ip VPS'а> -i <ключ>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question