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

Specify the bind address for SSH communicator tunnels #34

Open
thinkst-marco opened this issue Feb 9, 2021 · 0 comments
Open

Specify the bind address for SSH communicator tunnels #34

thinkst-marco opened this issue Feb 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@thinkst-marco
Copy link

Description

SSH tunnels specified by ssh_remote_tunnels and ssh_local_tunnels can only bind to localhost. I'd like to propose that the tunnel parsing code be extended to allow for standard OpenSSH-style tunnel specifications: [bind_address:]port:host:hostport

This is mentioned in tunnel.go as NYI. Is it on the cards?

Use Case(s)

Specific use-case is for building images on remote ESXi servers, where floppy & CD preseeds are not possible for driver reasons. Having packer forward a port on ESXi server to packer's HTTP server saves having to setup a separate SSH session.

Potential configuration

"ssh_remote_tunnels": ["esxi.server.ip.address:55555:{{ .HTTPIP }}:{{ .HTTPPort }}"]
@thinkst-marco thinkst-marco added the enhancement New feature or request label Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants