I am trying to make 2ssh tunnels:
one, reverse ssh, that connects from computer 1 port 2400 to computer 2 port 22. It connects but the port on computer 1 is different from 2400, it' s 54312. Command syntax:
ssh -24 -R 2400:ip_computer_1:22 -l user ip_computer_2
the second one I want to use for tunneling VNC protocol packets, I change the specific port on which the VNC Server permits connection. This doesn' t work: vncviewer displays: "unable to connect to host Connection refused (111)."
The comand I give:
ssh -24 -f -L 25902:ip_computer_1:5902 user_2@computer_2; vncviewer ip_computer_2:25902:2