Can't do reverse SSH tunneling in LOCAL network

Clash Royale CLAN TAG#URR8PPP
up vote
-1
down vote
favorite
I want to do reverse SSH tunneling in Local Network.
Machine_A = 192.168.0.3 running SSH server behind firewall,
Machine_B = 192.168.0.5 is allowed to access SSH server and is behind the firewall.
Machine_C = 192.168.0.2 can't connect B or C directly
192.168.0.3 has two users: userB, userC i.e., userB can access 192.168.0.3 but userC can't.
All machines are running LINUX. How can Machine_C achieve SSH connection using reverse SSH ? Do I need to enable Port forwarding in ROUTER?
In Machine_B I have to use: ssh -R 12345:localhost:22 _____? from Machine_C : ssh -p 12345 _______?
ssh
add a comment |Â
up vote
-1
down vote
favorite
I want to do reverse SSH tunneling in Local Network.
Machine_A = 192.168.0.3 running SSH server behind firewall,
Machine_B = 192.168.0.5 is allowed to access SSH server and is behind the firewall.
Machine_C = 192.168.0.2 can't connect B or C directly
192.168.0.3 has two users: userB, userC i.e., userB can access 192.168.0.3 but userC can't.
All machines are running LINUX. How can Machine_C achieve SSH connection using reverse SSH ? Do I need to enable Port forwarding in ROUTER?
In Machine_B I have to use: ssh -R 12345:localhost:22 _____? from Machine_C : ssh -p 12345 _______?
ssh
add a comment |Â
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I want to do reverse SSH tunneling in Local Network.
Machine_A = 192.168.0.3 running SSH server behind firewall,
Machine_B = 192.168.0.5 is allowed to access SSH server and is behind the firewall.
Machine_C = 192.168.0.2 can't connect B or C directly
192.168.0.3 has two users: userB, userC i.e., userB can access 192.168.0.3 but userC can't.
All machines are running LINUX. How can Machine_C achieve SSH connection using reverse SSH ? Do I need to enable Port forwarding in ROUTER?
In Machine_B I have to use: ssh -R 12345:localhost:22 _____? from Machine_C : ssh -p 12345 _______?
ssh
I want to do reverse SSH tunneling in Local Network.
Machine_A = 192.168.0.3 running SSH server behind firewall,
Machine_B = 192.168.0.5 is allowed to access SSH server and is behind the firewall.
Machine_C = 192.168.0.2 can't connect B or C directly
192.168.0.3 has two users: userB, userC i.e., userB can access 192.168.0.3 but userC can't.
All machines are running LINUX. How can Machine_C achieve SSH connection using reverse SSH ? Do I need to enable Port forwarding in ROUTER?
In Machine_B I have to use: ssh -R 12345:localhost:22 _____? from Machine_C : ssh -p 12345 _______?
ssh
ssh
edited Aug 28 at 17:02
asked Aug 28 at 16:20
Biplab
11
11
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
On Machine_B
ssh -g -L 12345:localhost:22 Machine_A
On Machine_C
ssh -p 12345 Machine_B
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
On Machine_B
ssh -g -L 12345:localhost:22 Machine_A
On Machine_C
ssh -p 12345 Machine_B
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
add a comment |Â
up vote
0
down vote
On Machine_B
ssh -g -L 12345:localhost:22 Machine_A
On Machine_C
ssh -p 12345 Machine_B
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
add a comment |Â
up vote
0
down vote
up vote
0
down vote
On Machine_B
ssh -g -L 12345:localhost:22 Machine_A
On Machine_C
ssh -p 12345 Machine_B
On Machine_B
ssh -g -L 12345:localhost:22 Machine_A
On Machine_C
ssh -p 12345 Machine_B
answered Aug 28 at 16:33
RalfFriedl
3,9151625
3,9151625
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
add a comment |Â
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
Sorry, I just realized that I asked the question wrong. Actually I want to establish reverse SSH tunnel where A,B both are behind firewall and A blocks all incoming request from C but allows OUTGOING connection. Sorry for inconvenience.
â Biplab
Aug 28 at 17:09
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f465340%2fcant-do-reverse-ssh-tunneling-in-local-network%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password