How to redirect all SSH tunnel traffic from one server to another?

0

I have two servers, both running ubuntu 16.04 My plan is to ssh tunnel to server A, which I need to relay my tunnel to server B (target) currently I use sshuttle on server A like this:

sshuttle --dns -r user@serverB 0/0 -x serverB

But my problem is that when I run this on server A, it won't accept any new ssh connections. All previously connected sessions stay alive and are redirected to serverB fine, but this is a problem because everytime I want to start a new ssh session, I have to stop sshuttle, connect, and then run the command again. What should I do? should I change something in the command? or do something else entirely? thanks.

Farsh

Posted 2019-11-23T03:48:32.283

Reputation: 1

No answers