I am trying to ssh tunnel into this CTF box and this is the command I am using
ssh -L 2020:127.0.0.1:5901 user@196.168.88.47
and to connect to the 2020 socket I use
ssh -p 2020 root@127.0.0.1
when I do that, it gives me no prompt. Just blank lines no response nothing. BTW 5901
is an open port on the CTF machine.
I already have a shell on the machine, I tried
netstat -a | grep ESTABLISHED
tcp4 0 0 localhost.5801 localhost.30508 ESTABLISHED
so the connection to the port has been established. Can someone tell me what I am doing wrong?