Answer the question
In order to leave comments, you need to log in
How to set up a reverse SSH tunnel through a VPS?
There is a VPS running ssh, ( GatewayPorts yes ).
On the remote "server" I create a reverse ssh connection in this way: ssh -R 4855:localhost:2255 [email protected]
ssh hangs on port 2255 of the server. The goal is to access the server console (without external ip) through a reverse ssh tunnel to the VPS.
Next, on the client computer in putty, I create a connection to the VPS with the SSH Tunnels settings:
Source ports 2255
Destinatio localhost: 4855
after connecting to the VPS, I try to connect via ssh to the remote server on port 4855, but nothing happens.
The question is what am I doing wrong?
On VPS:
sudo netstat -nap | grep 4855
tcp 0 0 0.0.0.0:4855 0.0.0.0:* LISTEN 2183/sshd: user
tcp6 0 0 :::4855 :::* LISTEN
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question