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

Support for Bastion / Jumphosts? #98

Open
prologic opened this issue Jun 17, 2022 · 5 comments
Open

Support for Bastion / Jumphosts? #98

prologic opened this issue Jun 17, 2022 · 5 comments

Comments

@prologic
Copy link

Can we add support for Bastion / Jumphosts?

The only thing that needs to happen is:

  • Add an optional bastion { ... } block
  • If bastion is defined, first dial a connection to the bastion host, get an ssh client back, then dial the actual target host.
@tenstad
Copy link
Owner

tenstad commented Jun 19, 2022

Thank you for the suggestion! I'm not familiar with bastions. What would the bastion block need to contain? The same configuration as the current conn block?

@prologic
Copy link
Author

Yes more or less. The same connection details like user/password + host or host + key are used to make an initial connection to a host, then with the resulting connection you make the actual connection to the host you're targeting.

The SSH library implements the Dialer and Conn interfaces.

@jorikseldeslachts
Copy link

Any progress on this feature?

@tenstad
Copy link
Owner

tenstad commented Oct 27, 2022

Not that I am aware of. Would you be interested in looking into it and creating a PR?

@alita1991
Copy link

Hi, does anyone have any update/workaround to handle the jump host?

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

No branches or pull requests

4 participants