For those who worked with ssh port forwarding or for those who have an idea, I managed to create a remote tunnel from my PC to a remote machine(a camera that does not have a public address) through a ssh server ( has a public address ).
The goal is to forward the access of the camera to the public with ssh remote port forwarding,
The format of the command that I launched on my PC is:
ssh -R sshServer_port:destination_address:destination_port sshServer_address
ssh -R 3000:184.108.40.206:80 email@example.com
In the sshServer, I can access the remote machine through localhost:3000
and then, I set up a tcpproxy to make the access public with this command:
tcpproxy -lhost 0.0.0.0:8080 -rhost localhost:3000
With this,anyone from any network can access to the camera interface by typing 220.127.116.11:8080
What I want to do is create a tunnel that listens on two remote machine ports (80 for http and 8000 for the live streaming) with the format of the command:
ssh -R sshServer_port:destination_address:destination_port1 -R sshServer_port:destination_address:destination_port2 sshServer_address
ssh -R 3000:192.168.1.210:80 -R 3000:192.168.1.210:8000 firstname.lastname@example.org
I tried to run the command but I got this error: Warning: remote port forwarding failed for listen port 3000
Do you have an idea how to fix this.