I need advice how to make proper ssh connections.
My network:
I want to be able to view web server content from devices B_1, B_2, B_3 using FF with SOCKS configured on Client A. Note that firewall doesn't allow incoming connections, and that cannot be changed.
I can achieve now something similar by opening single tunnel for each machine (B_1,B_2,B_3), and browse content by typing http://localhost:5678 in FF, without SOCKS on Client A
On Server B -> B_1
ssh -f -n -T -R5678:192.168.1.2:80 user@serverA
On Client A
ssh -L 5678:localhost:5678 user@serverA
I think i need to use ssh -D
on server B to be able to connect to machines B_1,B_2,B_3, just typing IP address in FF with SOCKS set up localhost:5678 on Client A, but i'm doing something wrong, because I can't get it to work.
Any help will be appreciated :)
B
toC
because there is a firewall between that doesn't allow incoming connections toC
that's why I need to initialize ssh connection fromC
toB
and somewhere here addssh -D
Or maybe there is another method to achieve my goal.ssh f -n -D 5432:localhost ssh -f -n -T -R5432:localhost:5432 user@serverA
on Bssh -L 55432:localhost:5432 user@serverA
ssh -D
must be run on the machine that you choose asB
(in the context of my linked answer) and it must connect toC
(possibly via a tunnel; in your case obligatorily, I think). The command really defines what machine isB
and what isC
.