The Wayback Machine - https://web.archive.org/web/20200917224633/https://github.com/ParallelSSH/parallel-ssh/issues/187
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Parallel creation of (many) TCP/IP Tunnels #187

Open
OOTS opened this issue Nov 27, 2019 · 1 comment
Open

[Feature Request] Parallel creation of (many) TCP/IP Tunnels #187

OOTS opened this issue Nov 27, 2019 · 1 comment

Comments

@OOTS
Copy link

@OOTS OOTS commented Nov 27, 2019

Hi,

I'd like to use parallel-ssh to establish SSH tunnels (port forwarding) to (many) hosts. Right now, you can establish each tunnel manually using the Tunnel class in pssh.clients.native.tunnel. However, it would be cool to have a feature like the following:

hosts=[...]
client = ParallelSSHClient(hosts, other_args)
ports = client.open_tunnel(remote_host, remote_port, bind_ip)
# now, all traffic (from bind_ip) to localhost:ports[i] is sent to hosts[i], which forwards it to remote_host:remote_port

What I'm trying to do is the following:
I have a couple of hosts, each running an SSHD and the same set of services. The services only listen for connections from localhost (by intention). The current way of connecting to them is to establish a port forwarding through the SSHD to the respective service ports with ssh -N -L localhost:local_port:localhost:service_port user@host. I'd like to be able to establish one tunnel for each host with a simple API.

Best regards,
OOTS

@pkittenis
Copy link
Member

@pkittenis pkittenis commented Aug 12, 2020

Thank you for the interest. That would be nice to have, though no ETA at the moment. Related for performance enhancement of tunnelling - #140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.