Hello how can i create a working Reverse ssh tunnel like this commend should do:
ssh -fN -R 12345:localhost:22 internediary_user@192.168.2.45
This create the process on the intermediary computer.
This code in in test state so this is the reson why i use private ip for home user. I would like to test before i try it on public server.
So the working part is: I can locate the success LISSENING port in intermediar computer named sshd.exe and with localport 1234;remote port:22.
It looks good.
But instead of adding rule for eneble 12345 port tcp on the firewall with inbould direction. The port scan from 3th Computer on the network show port is refuses conenctions.
So here i got stuck. From 3th computer say in time ssh connection attempt to connect to destination computer throught intermediary computer: Connection refused.
As far as i know it would work but not work. Naturaly the public authentication work seemless and with normal ssh completely work the login.
Althought I may locate an error when i run that command. The command not completed just run. ' _ ' blicking infinity till not close the cmd window