simple tool which opens a persisent ssh tunnel on the client-side to a specified target orchestrator, forwarding the client's ssh port. mainly for accessing machines which do not have forwarded ports
JAMES RYAN
84d8f580b3
a basic TUN interface. Doesn't really work, since the tunnel gets formed but nothing can properly bind to it. I should probably rethink what i'm doing before moving forward lol Signed-off-by: JAMES RYAN <james.paul9889@gmail.com> |
||
---|---|---|
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
README.md |
ssh-client-orchestrate
simple tool which opens a persisent ssh tunnel on the client-side to a specified target orchestrator, forwarding the client's ssh port. mainly for accessing machines which do not have forwarded ports
General idea: theres a main orchestrate server you initialize on a given host, which does have its ssh port forwarded to the internet. Then, you provide clients with a server to register with by giving a hostname and a port to forward to the machine.
This will fail if the client does not have a key-pair with the server.
Then it handshakes with the server and asks the server software to make an entry in /etc/hosts
for it. the server then keeps track of the newly-registered client and periodically connects to check if its alive.