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

Bind SSH tunnel to any open port #136

Merged
merged 3 commits into from
Dec 16, 2016
Merged

Bind SSH tunnel to any open port #136

merged 3 commits into from
Dec 16, 2016

Conversation

yusefnapora
Copy link
Contributor

This changes the SSH tunnel setup to bind to any available port, and rewrites the apiUrl to use the bound port before passing the RestClient to the subcommand worker functions.

This lets you tunnel to a remote node while a local node is bound to the default port, or run multiple tunneled commands in parallel.

It also removes the requirement that the sshConfig have either a password or privateKey field, which makes the tunnel lib fallback to using ssh-agent to authenticate.

@yusefnapora yusefnapora merged commit b2a77ee into master Dec 16, 2016
@yusefnapora yusefnapora deleted the yn-ssh-auto-port branch December 16, 2016 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants